Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an array of short integers to a DLL using FoxPro
Message
De
24/09/2001 02:36:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Passing an array of short integers to a DLL using FoxPro
Divers
Thread ID:
00559858
Message ID:
00559858
Vues:
88
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform