I'm trying to access a DLL that has the following documentation:
short far pascal TMRom(
long session_handle, // session handle for the desired MicroLan
void far *state_buffer, // state buffer provided for the MicroLan session
short far *ROM // buffer to read or write from the internal ROM buffer
);
where ROM specifies a pointer to an short array with eight elements that either will read or set the internal ROM buffer.
I've tried the following declarations and DLL calls without success:
DECLARE short TMRom IN ibfs32.dll long, string @, short @
DIMENSION aROM(16)
STORE 0 TO aROM
nReturnValue = TMRom(nSessionHandle, @cStateBuffer2, @aROM)
DECLARE short TMRom IN ibfs32.dll long, string @, string @
cROM = REPLICATE(CHR(0), 16)
nReturnValue = TMRom(nSessionHandle, @cStateBuffer2, @cROM)
Is it possible to pass an array of short integers to a DLL using FoxPro?
Carl Owenby
Network Consulting LLC
Tallahassee FL USA