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