Anything besides NewLispEvalString, for external access?

Started by LispExplorer12, August 15, 2013, 09:01:44 AM

Previous topic - Next topic

LispExplorer12

Hi,



If I'm writing apps to call functions from the newlisp.dll, are there some other functions I'll need to declare and implement, other than NewLispEvalStr, and a method for getting the string from the pointer?



I mean, we can evaluate one-line lisp statements like "( println 275 )", with NewLispEvalStr.  But what about defines, and other more complicated statements?  Do we just send an entire lisp program, as a single string with embedded carriage returns, to the NewLispEvalStr function?

HPW

Hello,
QuoteDo we just send an entire lisp program, as a single string with embedded carriage returns, to the NewLispEvalStr function?


Yes, you can do this. You may also use load-command to load code into the dll.



Regards
Hans-Peter

LispExplorer12

Ok thanks, HPW.  I have see any references to load-command in the external interface docs, but can probably

just use a DLL viewer to determine the parameters.

LispExplorer12

I don't see it documented anywhere.  The only exports are



dllName,  debugConsole, newlispEvalStr, newlispCallback, dllEvalStr, and WEP





Anyway, newlispEvalStr is good enough, thanks.