Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PKWARE DLL

Posted on 2000-03-03
1
Medium Priority
?
303 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 150 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

810 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