On Wed, Jul 19, 2006 at 11:58:16PM -0500, Bo Peng wrote:
> I also notice that
> 
> 1. lyx -dbg generates no output since there is no stdout to write to.
> This may be OK though, since other native windows applications do not
> write to stdout either.
> 
> 2. a black cmd window will appear for almost all actions that involve
> external commands (compile, view). I think this is because lyx spawns
> processes with consoles. the solution may be
> http://www.codeproject.com/win32/runsilent.asp?msg=1578551 .

Please, have a look at the comment in os_win32.C/init().

I think that the best solution is getting rid of that console-hiding
code, compiling LyX as a console-based app and then using a GUI-based
wrapper program for launching LyX from the GUI.

ATM LyX is launched though a .bat file, so it means simply replacing
the wrapper .bat file with a .exe wrapper.

This is what I do with LyX/cygwin, using as a starting point
development/Win32/lyxwin32.c, which is specifically designed for cygwin
but can be adapted to native windows. I have no cmd.exe window at
all when using this technique, while retaining the possibility to
get output when launching LyX without using the wrapper.

-- 
Enrico

Reply via email to