1. Firstly, the is replaced with , the test source program is: #include int WinApi Winmain (Hinstance Hinstance, Hinstance Hprevinstance, LPSTR LPCMDLINE, INT NSHOWCMD) {CString Str = " Hello, World! "; MessageBox (NULL, STR," Hello ", 0); return 0;} 2. Compile the above program, there is a link error: NAFXCW.LIB (thrdcore.obj): Error LNK2001: Unresolved External Symbol __endthreadexnafxcw .lib (THRDCORE.OBJ): Error LNK2001: Unresolved External Symbol __beginthreadex This is an error that does not use multi-thread libraries. 3. Add / mt switch to the Project Options of Project-> Settings to support multi-thread library.