Menu

Using Unicode version of WinMain

2003-01-17
2012-09-26
  • Nobody/Anonymous

    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'.

     
    • Nobody/Anonymous

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.