Anything besides NewLispEvalString, for external access?

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
LispExplorer12
Posts: 3
Joined: Thu Aug 15, 2013 3:51 pm

Anything besides NewLispEvalString, for external access?

Post by 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
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Re: Anything besides NewLispEvalString, for external access?

Post by HPW »

Hello,
Do 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
Posts: 3
Joined: Thu Aug 15, 2013 3:51 pm

Re: Anything besides NewLispEvalString, for external access?

Post by 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
Posts: 3
Joined: Thu Aug 15, 2013 3:51 pm

Re: Anything besides NewLispEvalString, for external access?

Post by 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.

Locked