c++.command-line - DOS Background window
- "Hans Landrum" <hans.landrum ga.prestige.net> Apr 09 2001
- Jan Knepper <jan smartsoft.cc> Apr 09 2001
- "Walter" <walter digitalmars.com> Apr 09 2001
- "Rajiv Bhagwat" <brajiv giasbm01.vsnl.net.in> Apr 12 2001
I am new to programming with this compiler, but I would like to know how to compile a windows program without a DOS window in the background of the run file. Thanks for any help...
Apr 09 2001
Use WinMain as the main entry point instead of main. #include <windows.h> int WINAPI WinMain ( HINSTANCE instance, HINSTANCE previous, LPSTR commandline, int show ) { // Create window. // Main Message Loop. return ( 0 ); } Hans Landrum wrote:I am new to programming with this compiler, but I would like to know how to compile a windows program without a DOS window in the background of the run file. Thanks for any help...
Apr 09 2001
I'm not sure I understand your question. The free version of the compiler is a console app and so needs to be run from inside a console window. You can develop regular GUI apps with it, though. Hans Landrum wrote in message <9attvv$n0p$1 digitaldaemon.com>...I am new to programming with this compiler, but I would like to know how to compile a windows program without a DOS window in the background of the run file. Thanks for any help...
Apr 09 2001
I recently had this problem: my notes:<brag> 12:54 AM Mar 14 2001 Worked on the 32 bit envelope. Seems to be successful, except that it shows a DOS window for a brief period of time. Checking how to eliminate that, or atleast hide it. 1:27 AM Mar 14 2001 Created a wrapper program - full app, using convoluted makefile. Testing that shows that Devkey does not come up. Corrected erronous SW_HIDE parameter. 1:42 AM Mar 14 2001 The 32 bit program always shows a console window! How to get rid of it? 2:13 AM Mar 14 2001 Created a project in sc32 bit. Looks like something to do with specifying a special entry point to the linker to start at WinMain. 2:53 AM Mar 14 2001 Alright, it requires a def file, and the directives: EXETYPE NT SUBSYSTEM WINDOWS to hide the console! Now even a simple program will do. In short.: use WinMain, don't register a class, don't create a window (so no point showing it), then just do your action. Use the .def file. No special linker entry point needed. Walter <walter digitalmars.com> wrote in message news:9au0tm$oiu$1 digitaldaemon.com...I'm not sure I understand your question. The free version of the compiler
a console app and so needs to be run from inside a console window. You can develop regular GUI apps with it, though. Hans Landrum wrote in message <9attvv$n0p$1 digitaldaemon.com>...I am new to programming with this compiler, but I would like to know how
compile a windows program without a DOS window in the background of the
file. Thanks for any help...
Apr 12 2001