Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    dpaterso's Avatar
    dpaterso is offline Verified Broker Support for Deltastock FX-Men Honorary Member
    Join Date
    Mar 2007
    Location
    Johannesburg, South Africa.
    Posts
    4,651
    OK: maybe it's just I that doesn't know what I'm doing.

    I changed your code back to 'EUR/USD', then ran Delta Trading, and then ran JUST your Java program. That works. But then the demo API doesn't work. In other words: obviously you cannot have BOTH running OR as you say 'something' has to be 'destroyed' first (and I don't think the demo API is properly 'destroying' that 'something'.

    But please do let me know the outcome of what it is that YOU are doing anyway.

    As I say: there does seem to be some type of 'intermittent' problem anyway.

    Regards,

    Dale.


  2. #22
    oXo
    oXo is offline Newbie
    Join Date
    Mar 2011
    Posts
    11
    ok Dale.

    I'll give you some news, may be screenshot when my project 'll be working.

    Regards,

    oXo

  3. #23
    oXo
    oXo is offline Newbie
    Join Date
    Mar 2011
    Posts
    11
    Just in case if you want to run the javascript code many time as you want without restarting each time deltatrading, use this code :

    var obj;
    var retval;
    var retval1 = 0;
    try
    {
    obj = new ActiveXObject("DSAPI_Client.clientAPI");
    retval1 = obj.CreateClientAPI();
    retval = obj.GetQuote_S("EUR/USD");
    WScript.Echo(retval);
    destroy = obj.DestroyClientAPI();
    }
    catch(e)
    {
    WScript.Echo("Object not set." + e.description);
    }

    oXo

  4. #24
    dpaterso's Avatar
    dpaterso is offline Verified Broker Support for Deltastock FX-Men Honorary Member
    Join Date
    Mar 2007
    Location
    Johannesburg, South Africa.
    Posts
    4,651
    Hello,

    Thanks for that. Interesting (for me anyway).

    I see the 'destroy = obj.DestroyClientAPI();' line. I've a feeling that's not working in the compiled version of the demo API (or there's some 'leakage' or something going wrong with it).

    But I've sent these posts (the links) to 'the powers that be' so it shouldn't be too long before we receive some more insight.

    And of course: I'm dying to know what you intend DOING with all of this!!! LOL!!!

    Regards,

    Dale.

  5. #25
    dpaterso's Avatar
    dpaterso is offline Verified Broker Support for Deltastock FX-Men Honorary Member
    Join Date
    Mar 2007
    Location
    Johannesburg, South Africa.
    Posts
    4,651
    Hey oXo,

    Long time no 'hear'. How is your 'project' going???

    Regards,

    Dale.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
"When the student is ready, the teacher will appear."
Buddhist Proverb