Adapt Polynomial Regression to C++ DLL

Pages: 12
the interactions across languages or tools are often done at this level. I have interfaced to a lot of hardware and software where both sides just want data in C-array or C-pointer format of simple types (int, double, byte, etc).
Atom1 wrote:
He said you cannot pass an Easylanguage object to a dll, period.

Nobody is asking you to pass an Easylanguage object to a dll.

The interface I've written is
double PolyFitFunction( double *Y, int N )

You need to pass a pointer (the double *Y) to the start of your vector object's data buffer.

Or you can pass an ordinary array if you prefer.

I have built the project using your code, all it completed ok. One way to use a dll with Easylanguage is to import tskit.dll into the VS project. This would allow me to use Easylanguage variables, which in some respects are like an array because Easylanguage keeps a copy of the variable for each bar (time slice of market data, typically time based). I have not been able to do this importation as yet. I will try to get help from Easylanguage coders. My other option, is to put my data points into a string and send the string to the dll function. Seems a bit kludgy.
Topic archived. No new replies allowed.
Pages: 12