Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to declare dll in vfp as C# declaration above
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01534564
Message ID:
01534580
Views:
91
This message has been marked as the solution to the initial question of the thread.
Likes (1)
* should be no trouble with this one
DECLARE INTEGER ftrScanOpenDevice IN ftrScanAPI.dll
* should be no trouble with this one
DECLARE ftrScanCloseDevice IN ftrScanAPI.dll INTEGER ftrHandle
* should be no trouble with this one
DECLARE INTEGER ftrScanSetDiodesStatus IN ftrScanAPI.dll INTEGER ftrHandle, INTEGER byGreenDiodeStatus, INTEGER byRedDiodeStatus
* should be no trouble with this one
DECLARE INTEGER ftrScanGetDiodesStatus IN ftrScanAPI.dll INTEGER ftrHandle, INTEGER @ pbIsGreenDiodeOn, INTEGER @ pbIsRedDiodeOn
* For pImageSize, pass to the ftrScanGetImageSize a string equal to REPLICATE(CHR(0), 12). 12 means 3 INTEGERs, 4 bytes each.
* After the function returns, you'll need to parse the pImageSize and convert it to 3 numeric values. The last one you'll need for subsequent
ftrScanGetImage call
DECLARE INTEGER ftrScanGetImageSize IN ftrScanAPI.dll INTEGER ftrHandle, STRING @ pImageSize
* Prior to calling ftrScanGetImage, you have to allocate pBuffer -- VFP string of a sufficient size returned by a call to ftrScanGetImageSize.
* After the function returns, the string will be populated with required bytes.
DECLARE INTEGER ftrScanGetImage IN ftrScanAPI.dll INTEGER ftrHandle, INTEGER nDose, STRING @ pBuffer
Previous
Reply
Map
View

Click here to load this message in the networking platform