Hi there, i haven't found anything related to this in the Docs. I'm creating a GUI app with Fan FWT and I need to be able to hide/close the MS-DOS window when my gui application opens. How can I do this?
any help will be much appreciated
thanks jason
brianMon 12 Oct 2009
In general that is sort of a pain with Java.
The "javaw.exe" program is supposed to be used to launch Java programs without a DOS console. I haven't tried with it Fan, but you would just pass all your Fan parameters directly to Java (see setup).
In the past I have also written my own JVM wrapper in C code using some sample code I found on the web (you can look at src/launcher for our Fan launcher code for win32).
baeltazorMon 12 Oct 2009
Thank you for your quick response :) I vaguely remember seeing some code for Fan that could do this probably about 4 months ago? And in your reply you mentioned Java, does this also apply to .NET? Because that's what I'm using..
thanks again
brianMon 12 Oct 2009
FWT doesn't work in .NET yet (so that will be your first problem :-)
I am not sure how .NET launchers work with regard to DOS console yet.
baeltazorMon 12 Oct 2009
hehehehe silly me... do you know of any fan-based websites? like blogs or anything? maybe somebody else has tried to hide/disable the ms-dos command prompt like me... can it be done programatically? like when the application window is first displayed, i don't mind if it pops up for a split second, so long as i can somehow banish it from sight :P
baeltazor Mon 12 Oct 2009
Hi there, i haven't found anything related to this in the Docs. I'm creating a GUI app with Fan FWT and I need to be able to hide/close the MS-DOS window when my gui application opens. How can I do this?
any help will be much appreciated
thanks jason
brian Mon 12 Oct 2009
In general that is sort of a pain with Java.
The "javaw.exe" program is supposed to be used to launch Java programs without a DOS console. I haven't tried with it Fan, but you would just pass all your Fan parameters directly to Java (see setup).
In the past I have also written my own JVM wrapper in C code using some sample code I found on the web (you can look at src/launcher for our Fan launcher code for win32).
baeltazor Mon 12 Oct 2009
Thank you for your quick response :) I vaguely remember seeing some code for Fan that could do this probably about 4 months ago? And in your reply you mentioned Java, does this also apply to .NET? Because that's what I'm using..
thanks again
brian Mon 12 Oct 2009
FWT doesn't work in .NET yet (so that will be your first problem :-)
I am not sure how .NET launchers work with regard to DOS console yet.
baeltazor Mon 12 Oct 2009
hehehehe silly me... do you know of any fan-based websites? like blogs or anything? maybe somebody else has tried to hide/disable the ms-dos command prompt like me... can it be done programatically? like when the application window is first displayed, i don't mind if it pops up for a split second, so long as i can somehow banish it from sight :P