newlisp.dll with get-string Bug
Posted: Mon Dec 08, 2003 7:23 am
In newlisp.exe:
In newlisp.dll:
Of cource I do not want to embed a newlisp in newlisp.dll.
It is only a test for use of other DLL. (zlib,zip etc.)
I want to access compressed or zipped data direct from newlisp exe and/or dll.
Code: Select all
> (import "newlisp.dll" "dllEvalStr")
dllEvalStr <11180BC>
> (get-string (dllEvalStr "(+ 3 4)"))
"7"
> (print(get-string (dllEvalStr "(append \"test\" \"2\")")))
"test2""\"test2\""
> (silent(print(get-string (dllEvalStr "(append \"test\" \"2\")"))))
"test2"
Code: Select all
(import "newlisp.dll" "dllEvalStr")
dllEvalStr <19880BC>
(get-string (dllEvalStr "(+ 3 4)"))
7"7"
(setq a(get-string (dllEvalStr "(+ 3 4)")))
7"7"
a
"7"
(print(get-string (dllEvalStr "(append \"test\" \"2\")")))
"test2""test2""\"test2\""
(silent(print(get-string (dllEvalStr "(append \"test\" \"2\")"))))
""
It is only a test for use of other DLL. (zlib,zip etc.)
I want to access compressed or zipped data direct from newlisp exe and/or dll.