Solved

PKWARE DLL

Posted on 2000-03-03
1
275 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot debug web form sthrough Visual Studio 2013 2 83
String manipulation in Visual Basic 7 73
Best book to learn C++ 4 84
VIDEO DATASOURCE Control Resize issue 2 30
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…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 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