Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Declaring DLL functions and size of vars
Message
De
20/01/2006 14:40:16
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Declaring DLL functions and size of vars
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01089000
Message ID:
01089000
Vues:
58
Hi Y'all,

Have had to use the DECLARE command for DLL functions provided by a 3rd party co. (which is not very "accessible" unfortunately). My question has to do with the maximum value limits when declaring various parameters of the DLL. Here is a sample call:
DECLARE LONG GetDocumentList IN DDocGate.dll ;
   STRING tcUserName, ;
   STRING tcBinderID, ;
   STRING @tcXML, ;
   SHORT  @cbXML
Where the last 2 params get stuffed with an XML string and the last param is the length of the string returned. In their documentation, it said that cbXML could be up to 32,767 chars long. In a rare instance, this was not large enough for the returned XML string. So I changed it to LONG and it worked better.

For the future though, what are the max limits for the various var declarations. The VFP help does not give exact ranges. Can someone fill in or confirm:

SHORT --> is this -32767 to 32766 (my guess if it is 16 bit)

LONG (help says "32 bit long integer" so ?):

INTEGER (help says "32 bit integer"):

Thanks,

Albert Gostick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform