When i doing wWinMain(...) or _tWinMain(...) with using <TCHAR.h> i get an error like C:\DEV-C++\LIB\\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16'.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
um from what ive seen it is excatly the same justn include windows.h
and add int APIENTRY WinMain()
upon going hough the hearder file you would find that WinMainA() is standard < win 9x
WinMainW() is the unicode version but the main difference is that they are both run though and hte header file will looksomething like this for the question you are asking
When i doing wWinMain(...) or _tWinMain(...) with using <TCHAR.h> i get an error like C:\DEV-C++\LIB\\libmingw32.a(main.o)(.text+0x8e): undefined reference to `WinMain@16'.
um from what ive seen it is excatly the same justn include windows.h
and add int APIENTRY WinMain()
upon going hough the hearder file you would find that WinMainA() is standard < win 9x
WinMainW() is the unicode version but the main difference is that they are both run though and hte header file will looksomething like this for the question you are asking
#ifdef (_WIN32 0x800) /* win NT *
#define WinMainW WinMain /*UNICODE*/
#else
#define WinMainA WinMain /*win9x*/
well form what ive seam to be this way
rember to include <windows.h> as well
Greggy