Can I use newlisp without console window?

Started by Tentaclius, July 21, 2006, 05:23:19 AM

Previous topic - Next topic

Tentaclius

Please tell, how can I use (is it possible?) newlisp without appearing console window?

Also is it possible to disable console window appearing if use (! ...) function?

Thanks alot...

pjot

#1
Hi Tentaclius,



Welcome to newLisp, the best programming language on earth!



The answer to your question is: YES, you can.



http://www.turtle.dds.nl/run/index.html">http://www.turtle.dds.nl/run/index.html



Furthermore, instead of using '!' to launch a binary, you may also use '(process)', which has an option to hide the application window.



Cheers

Peter

pjot

#2
Also you can recompile newLisp with MinGW, and modify the makefile with the linkerflag '-mwindows'. Then there will be no DOSbox when running a newLisp program.



Peter

HPW

#3
You can also consider to use the DLL-version of newLISP which you can embed in every other popular programming language. (with/without GUI).
Hans-Peter

Sleeper

#4

(import "kernel32.dll" "FreeConsole")
(FreeConsole)


this code works for me... it hides console window when you want.

just add this as first two lines of your script

pjot

#5
Folks,



The RUN-wrapper has been improved. Now processes started with 'run.exe' can be terminated with 'stop.exe'. For details look here:



http://www.turtle.dds.nl/run/index.html">http://www.turtle.dds.nl/run/index.html





Also additional processes spawned by the executed newLisp programs (similar to Unix "child-processes") will be terminated, to keep your processlist clean.



Enjoy



Peter

alex

#6
to Sleeper and Lutz



It must be in  Tips&Tricks (IMHO)?

alex

#7
More precise - in "Code_Snippets"