Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare dll problem
Message
 
 
To
02/12/2009 10:12:30
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01437269
Message ID:
01437377
Views:
44
Metin,

If that function can return more than one character you may need to preallocate enough space in the variable before you call the function.
lcTest = space(40) && allocate room for the max returned value
>>
>>DECLARE integer GetCashDrawerStatus IN poscd2.dll  STRING @
>>lcTest = []
>>GetCashDrawerStatus(@lcTest)
>>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform