I've taken the cab file samples and put them in a DLL, so that only one function has to be called.
But when I pass an ASCIIZ array to it it only returns the first value.
I'm thinking twilight zone music righht now because this sounds SO familiar as if I had read it somewhere here..
Anyway here's a sample:
-------------
Scott
mailto:[email protected][email protected]</A>
MCSE, MCP+Internet
[This message has been edited by Scott Turchin (edited June 25, 2000).]
But when I pass an ASCIIZ array to it it only returns the first value.
I'm thinking twilight zone music righht now because this sounds SO familiar as if I had read it somewhere here..
Anyway here's a sample:
Code:
Declare Function CCSCabInsert Lib "CCSCAB.DLL"(CabFileSpec As String,CAB_FILES() As Asciiz * 256) As Long Declare Function CCSCabExtract Lib "CCSCAB.DLL"(CabFileSpec As String, CAB_FILES() As Asciiz * 256,DestDirectory As String,DeleteFlag As Long) As Long 'Inside of DLL, other functions have access to this, could this be the problem? Global CAB_FILES() As Asciiz * %MAX_PATH + 1 ' CabFileSpec = "C:\CABTEST\CCS.CAB" CAB_FILES(1) = "C:\CABTEST\WINLOG.EXE" CAB_FILES(2) = "C:\CABTEST\CCS.DLL" CAB_FILES(3) = "C:\CABTEST\CCSDATE.DLL" CAB_FILES(4) = "C:\CABTEST\CCSENCR.DLL" CCSCabInsert CabFileSpec, CAB_FILES() The function at the beginning ONLY gets the CAB_FILES(1).
Scott
mailto:[email protected][email protected]</A>
MCSE, MCP+Internet
[This message has been edited by Scott Turchin (edited June 25, 2000).]
Comment