Solved

PKWARE DLL

Posted on 2000-03-03
1
265 Views
Last Modified: 2013-12-03
Experts,
I'm using the pkware programming libraries to perform data compression of text/image data base columns.

To read the data:
I read the image column, write a file and explode the file, then i have the uncompressed data (*.pcx). The problem
is that some of the uncompressed files
are invalid (in these files the explode and inplode operation modify the file size!).

I think the problem are: the pointers,
some data type incompatible with the pkware libraries.

Please i need some C/C++ source code that invokes the pkware libraries without any problem, or some recomendation to use this library correctly,

Thanks
0
Comment
Question by:cvillacrizv
1 Comment
 

Accepted Solution

by:
sinclairj earned 50 total points
ID: 2595391
typedef struct tagIOBLOCK
{
  CFile* pInFile;// input file handle
  CFile* pOutFile;// output file handle
} IOBLOCK, far *LPIOBLOCK;

LPSTR lpbuff = NULL;

ioblock.pInFile = new CFile(...);
ioblock.pOutFile = new CFile(...);


long nstat=implode_param(PKCompIn, PKCompOut,CMP_BINARY,(WORD)ndict,(DWORD)(LPIOBLOCK)&ioblock,lpbuff);

long nstat=explode(PKCompIn,PKCompOut, (DWORD)LPIOBLOCK)&ioblock);

PKCompIn and PKCompOut are the PkWare Callback functions.  ndict is the dictionary size, calculate from input file size.


This was copied from existing, working source code.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now