2004.09.07, Tue - Use CString in SDK

xiaoxiao2021-03-06  66

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.

转载请注明原文地址:https://www.9cbs.com/read-119595.html

New Post(0)