“APIENTRY _tWinMain” and “WINAPI WinMain” difference

后端 未结 3 981
北恋
北恋 2020-12-02 17:27

What are the difference from these 2 function?:

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                            


        
3条回答
  •  感情败类
    2020-12-02 18:07

    From this link:

    _tWinMain actually does take the hPrevInstance parameter, but that parameter isn''t used.

    _tWinMain is just a #define to WinMain (in TCHAR.h).

    There is no difference between the two.

    and

    _tWinMain is defined to WinMain if UNICODE is not defined, and to wWinMain if it is. its purpose is to let you write code that will build both under ansi and under unicode.

提交回复
热议问题