s-news
[Top] [All Lists]

calling C++ function from a script

To: "'s-news@wubios.wustl.edu'" <s-news@wubios.wustl.edu>
Subject: calling C++ function from a script
From: Pierre Delfosse <pierre.delfosse@centexbel.be>
Date: Thu, 22 Aug 2002 13:41:43 +0200
Dear S+ users,

Using S+ 6.1 under W98, a C++ function built with MS Visual Studio and
CONNECT/C++ is called as follows:

        dyn.open("<path>/S.dll")
        tmp_.Call('<C++ function name>',<parameters>)
        dyn.close("<path>/S.dll")

No problem is encountered if each line is entered separately in the Command
window.

However, when they are executed in a script:

- at the first script execution under a given S+ session, the function is
not recognized ("Attempt to invoke internal code "<C++ function name>" not
in load table") and script breaks at line 2.
- at the next executions during same session, everything runs ok ...
- ... provided no other task is requested (like opening a manual with
acrobat reader): this causes a break at second line without error message.

Any help or similar experience?

Thank you for your attention.


<Prev in Thread] Current Thread [Next in Thread>
  • calling C++ function from a script, Pierre Delfosse <=