PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → use of function from a class in an external dll
use of function from a class in an external dll
Débuté par Kerv, 16 juil. 2008 14:37 - 1 réponse
Posté le 16 juillet 2008 - 14:37
Dear all,

I have a Pocket PC with an integrated Scanner for barcode. I have thus developed a windevmobile application to read barcodes. But the scanner button need to be enabled in the application first. I have downloaded the Scanner SDK for the Pocket PC and i have use the required dll in my application in the API() function of windevMobile. But the required function(ScanInit) is found in a class(ScannerControl) of the dll(MSCCLibNet.dll). While the parameters required for API() are 'dll name,function name,parameters'. there is no option to specify the class in the API(). When i put API("MSCCLibNet","ScanInit"), i get the error message: The function 'ScanInit' cannot be found in the dll 'MSCCLibNet'.

Can you please help.

thanks,
kerv
Posté le 23 juillet 2008 - 16:12
Hi,

Can it be a .NET DLL for me it seems so ! You'll have to import the DLL in your project before !. To do so go to the menu after Project and choose .NET and try to iport that DLL. If it don't work I can't see how to use a class inside a DLL in Windev I never did it I'll have to do some test, But I'm pretty sure that we can't use it !

Hope it help,

Sylvain