Importing function from calling DLL?

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Importing function from calling DLL?

Post by HPW »

I had the idea to provide a function for newLISP.dll from that DLL which calls the newLISP.dll first. So is it possible to start a DLL, which imports the 'newlispEvalStr' and then start a newlisp function which trys to import a function from the first DLL? The idea is not to have a seperate DLL with utility functions, instead to have it all in one DLL?
Hans-Peter

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

Just made a little test. It seems to work, but it seems that it loads a second instance of the DLL into the newLISP memory. Have to do further tests.
Hans-Peter

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

For seperated utility function, the second instance seems to work.
This would be one use of this technic.
Last edited by HPW on Sat Dec 04, 2004 1:25 pm, edited 1 time in total.
Hans-Peter

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

I get it finally to work in my upcoming next hpwNewLISP plugin.
I am now able to import a function from my running wrapper plugin
into the newLISP.dll and call the script-processor of neobook directly
from newLISP.

That seems to offer another cool function for neobook/newLISP user.

Made me a happy day!
;-)
Hans-Peter

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

In the latest release of my newLISP-demo I have a modified neoTurtle.lsp with the alternative scripting. A timer shows speed improvments factor >20.

;-)
Hans-Peter

Locked