Announcement

Collapse
No announcement yet.

DLL issues

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DLL issues

    I'm having a little bit of trouble getting certain things to work in my dll calls. Any tips or suggestions would be appreciated.

    For the function "FunctionA" in dll "DLLtest", is the following syntax correct? It compiles but won't work. Earlier versions using a scalar instead of an array did work.

    Is the array passed by value or by reference? I've tried to receive it both ways in my dll but so far I see no difference.

    ===

    var DLLtest = new DLL("pathString");
    var x = new Array(10);
    var y = 0;
    //
    function preMain(){
    DLLtest.addFunction("F3", DLL.FLOAT, DLL.STDCALL, "FunctionC", DLL.FLOATARRAY);
    }
    //
    function main(){
    x[0] = open(0;
    x[1] = high();
    x[2] = low();
    x[3] = close();
    //
    y = DLLtest.call("F3", x);
    //
    return y;
    }

    ===

    Thanks ...
Working...
X