newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: HPW on December 03, 2004, 11:36:17 AM

Title: Importing function from calling DLL?
Post by: HPW on December 03, 2004, 11:36:17 AM
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?
Title:
Post by: HPW on December 03, 2004, 11:55:58 AM
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.
Title:
Post by: HPW on December 03, 2004, 12:37:11 PM
For seperated utility function, the second instance seems to work.

This would be one use of this technic.
Title:
Post by: HPW on December 04, 2004, 12:23:03 AM
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!

;-)
Title:
Post by: HPW on December 05, 2004, 08:21:11 AM
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.



;-)