Re: HELP WANTED!
- Posted by Derek Parnell <ddparnell at bigpond.com> Apr 28, 2003
- 378 views
----- Original Message ----- From: <euman at bellsouth.net> To: "EUforum" <EUforum at topica.com> Subject: HELP WANTED! > > Hello all, > > I have been waiting to implement Cab file wrappers (Cabinet.dll) > I thought once Robert C. had made cdecl available to us > that I could whip-up a working set but, I am totally confused about > this very mysterious .dll > > Here is code I have tried (below), I have also tried fptr.e by Matt Lewis > and code published by mic and none have worked. Perhaps this should > work before Robert C. post 2.4 final? > > I hope someone will guide me in the correct direction if it's even possible. > > *look for -- MACHINE LEVEL CRASH HERE!* > [snip] It seems that you have the definition of FDICreate incorrectly specified. I don't have the C code header for that so can you post it on the list. I suspect this because when you trace through the code, you can see the callback function for allocate and free being called, but the parameter's being passed to those functions are obviously wrong. The first allocate callback is passed 2052, which seems ok. However the next call is passed the PFNOPEN value! On my system that means it is being asked to allocate 4530592 bytes. Then the first myfree callback is being asked to free the PFNWRITE address. Next the ReadFile callback is being asked to use the PFNSEEK value as the file handle and to read the ERF value number of bytes. In my system that means 4559848 bytes! So I suspect that you may have missed a parameter? ---------------- cheers, Derek Parnell