Solved

PKWARE DLL

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

688 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