passing parameters to dll

Posted By: TradeProphet

passing parameters to dll - 10/27/16 19:27

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
Posted By: jcl

Re: passing parameters to dll - 10/28/16 16:11

You can just pass them as double float arguments to your function.
Posted By: TradeProphet

Re: passing parameters to dll - 10/28/16 16:26

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
Posted By: jcl

Re: passing parameters to dll - 10/28/16 16:35

well...

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

...
© 2024 lite-C Forums