Page 1 of 1

Importing function from calling DLL?

Posted: Fri Dec 03, 2004 7:36 pm
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?

Posted: Fri Dec 03, 2004 7:55 pm
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.

Posted: Fri Dec 03, 2004 8:37 pm
by HPW
For seperated utility function, the second instance seems to work.
This would be one use of this technic.

Posted: Sat Dec 04, 2004 8:23 am
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!
;-)

Posted: Sun Dec 05, 2004 4:21 pm
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.

;-)