Can I use newlisp without console window?

Q&A's, tips, howto's
Locked
Tentaclius
Posts: 2
Joined: Fri Jul 21, 2006 12:20 pm
Location: Belarus

Can I use newlisp without console window?

Post by 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
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

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

pjot
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

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

Post by HPW »

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
Posts: 24
Joined: Fri Nov 24, 2006 2:24 pm

Post by Sleeper »

Code: Select all

(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
Posts: 733
Joined: Thu Feb 26, 2004 10:19 pm
Location: The Hague, The Netherlands
Contact:

Post by pjot »

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

alex
Posts: 100
Joined: Thu Mar 10, 2005 2:27 pm
Location: Russia

Post by alex »

to Sleeper and Lutz

It must be in Tips&Tricks (IMHO)?

alex
Posts: 100
Joined: Thu Mar 10, 2005 2:27 pm
Location: Russia

Post by alex »

More precise - in "Code_Snippets"

Locked