Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing boolean parameters in DLLs
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00811175
Message ID:
00811215
Views:
13
No. It did not work.

****my code*****

DECLARE Signal IN 3partyDll string, string, integer @, string @, integer , string, integer

mcom="com1"
mfile="c:\myfile.txt"
mNres=0
mCres=""
mBoolian1=0
mBoolian2=0

=Signal(mcom, mfile, @mNres ,@mCres, mBoolian1, "",mBoolian2)

I used integer instead of boolean.

What I get is an error message:
"Cannot find entry point Signal in the DLL"

Where is the mistake!





>Use Integer, 0 is false, 1 is true.
>
>
>>What is the VFP equivalent for the following VB code?
>>
>>3partyDll.dll (the dll file)
>>
>>Signal in 3PartyDll
>>arguments type
>>---------------------------
>>"com1" string
>>"myfile.txt" string
>>ExNresult integer && returned - expected Numeric result
>>ExCresult string && returned - expected Nharacter result
>>SupError boolean
>>"" string
>>mDos boolean
>>
>>----VB code ----
>>Dim ExResult as String
>>Dim Result as Intreger
>>Dim mDos as Boolean
>>Dim SupError as Boolean
>>mDos = False
>>SupError = False
>>Call Signal("com1","\Mytext.txt",Result ,Exresult, mDos, "",SupError)
>>
>>----VFP code ---
>>DECLARE Signal IN 3PartyDll (how do I pass boolean parameters?)
>>
>>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform