Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 529 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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