Solved

PKWARE DLL

Posted on 2000-03-03
1
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…

749 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