[Solved] Double from a DLL

Just starting out? Need help? Post your questions and find answers here.
User avatar
Fig
Enthusiast
Enthusiast
Posts: 351
Joined: Thu Apr 30, 2009 5:23 pm
Location: Côtes d'Azur, France

[Solved] Double from a DLL

Post by Fig »

Hi,
I can't send a Double from a DLL. Could you explain me where I am wrong ? Thx you.

DLL to save "test.lib"

Code: Select all

ProcedureDLL.d test()
   net.d=2
   ProcedureReturn net
EndProcedure
Prog

Code: Select all

Import "test.lib"
test()
EndImport
Debug strD(test(),2)
I was expecting 2.00 and I get 0.00...
Last edited by Fig on Mon Feb 12, 2018 4:23 pm, edited 1 time in total.
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS
User avatar
CELTIC88
Enthusiast
Enthusiast
Posts: 154
Joined: Thu Sep 17, 2015 3:39 pm

Re: Double from a DLL

Post by CELTIC88 »

hi fig,

Import "d.lib"
TEST.d()
EndImport
Debug StrD(test(),2)
interested in Cybersecurity..
User avatar
Fig
Enthusiast
Enthusiast
Posts: 351
Joined: Thu Apr 30, 2009 5:23 pm
Location: Côtes d'Azur, France

Re: Double from a DLL

Post by Fig »

Obviously thx you :D
There are 2 methods to program bugless.
But only the third works fine.

Win10, Pb x64 5.71 LTS
Post Reply