Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CallFn Problems
Message
From
06/08/1996 04:10:50
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00005081
Message ID:
00005099
Views:
47
>>I have a DLL file that must receive 4 input parameters (all Character) and return 1 parameter (characters) but when i do:
>>
>>FuncHandle=RegFn(1,"@C@C@C@C,"C","MYDLL.DLL")
>>=CallFn(FuncHandle,"myparm1","myparm2","myparm3","myparm4")
>>
>>the program make an illigal operation and y must close fox and start over.

First to Alistair :
in FP2.x there is no DECLARE -DLL command . u can only call directly
.fll files and there is one .fll called foxtools that enables
you (among other things) to register .DLLs

to Francisko
you are passing all the parameters by reference (to get a value returned into them" and sending strings ...
try to define it "CCCC","C","Mydll.dll" instead

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform