Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to declare dll in vfp as C# declaration above
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01534564
Message ID:
01534580
Vues:
92
This message has been marked as the solution to the initial question of the thread.
J'aime (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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform