I really don’t know why this is happening ... I created a win32 application in emacs, and whenever I launch it and start it (not through the command line), a help window appears under the window. If I create a win32 application in Code :: Blocks and just run its default template, it starts without a command prompt window. I looked at the code of both and cannot figure out what might cause this ...
I thought this was because I included some printf () instructions in it, but I did not want them to stay there (they were for debugging), so I wrote a macro:
#define DEBUG
in main.c and
#ifdef DEBUG
#include<stdio.h>
#define DBG printf
#else
#define DBG
#endif
in the title (of course, after #define DEBUG).
DEBUG, ... , , , win32? ****Ex() Windows CreateWindow() .., . , , , printf(), , , stdio.h , DEBUG).
:
#include<windows.h>
#include<windowsx.h>
#include"main.h"
#include"windowproc.h"
- , ? stdio, DBG, printf, , , Code:: Blocks , HANDLE_MSG .
Update
MinGW 3.4.5.
-mwindows,