Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 730 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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