newLISP Fan Club

Forum => newLISP in the real world => Topic started by: Tentaclius on July 21, 2006, 05:23:19 AM

Title: Can I use newlisp without console window?
Post by: Tentaclius on July 21, 2006, 05:23:19 AM
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...
Title:
Post by: pjot on July 21, 2006, 12:14:52 PM
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



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



Cheers

Peter
Title:
Post by: pjot on August 10, 2006, 04:10:43 PM
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
Title:
Post by: HPW on August 10, 2006, 10:47:31 PM
You can also consider to use the DLL-version of newLISP which you can embed in every other popular programming language. (with/without GUI).
Title:
Post by: Sleeper on December 10, 2006, 03:26:21 PM

(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
Title:
Post by: pjot on December 24, 2006, 01:42:30 PM
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





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



Enjoy



Peter
Title:
Post by: alex on January 04, 2007, 02:45:03 PM
to Sleeper and Lutz



It must be in  Tips&Tricks (IMHO)?
Title:
Post by: alex on January 04, 2007, 02:51:58 PM
More precise - in "Code_Snippets"