Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, monk12, TipmyPip, Quad, aliswee), 1,029 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
passing parameters to dll #462775
10/27/16 19:27
10/27/16 19:27
Joined: Oct 2016
Posts: 2
T
TradeProphet Offline OP
Guest
TradeProphet  Offline OP
Guest
T

Joined: Oct 2016
Posts: 2
I have a problem passing the open,high,low,close vectors from a script to a dll function,
In test mode I see same values in for all open,high,low,close values ,when I do manage to see any values it's the same values in the entire vector for open,high,...

does anyone have an idea what am I doing wrong?
does anyone have a sample code for calling a method from script to C++ dll passing the open,high,low close values ?

thank you ,
Alon

Last edited by TradeProphet; 10/27/16 19:27.
Re: passing parameters to dll [Re: TradeProphet] #462782
10/28/16 16:11
10/28/16 16:11
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
You can just pass them as double float arguments to your function.

Re: passing parameters to dll [Re: jcl] #462784
10/28/16 16:26
10/28/16 16:26
Joined: Oct 2016
Posts: 2
T
TradeProphet Offline OP
Guest
TradeProphet  Offline OP
Guest
T

Joined: Oct 2016
Posts: 2
for some reason it does not work, I get to see the double array in the DLL but the double array contains the same value for all doubles in the array, do you have a sample code I can learn from ?
thank you

Re: passing parameters to dll [Re: TradeProphet] #462785
10/28/16 16:35
10/28/16 16:35
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
well...

myDLLfunction(priceOpen(),priceHigh(),priceLow(),priceClose());

...


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1