Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,173 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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