unresolved external symbol __beginthreadex error Resolution
Win32 Consle Application Some of the classes that use MFC, such as CString, are often encountered with some connection errors when compiling:
1. unresolved external symbol __beginthreadex
2. unresolved external symbol __endthreadex
But without MFC class and let people unwilling to heart, put a good class library not really too bad. In fact, it can be used, but we have a problem with the setup.
I will describe the specific settings below and share my experience with you.
A Create a new Win32 Consle Application project: GetCurrentTime.
Two Open the Project menu--〉 the Setting menu item--〉general tab
In Microsoft Fountion Classes: Select: Use the MFC in Static Library.
Three Then select Code Generation in category in the C + + tab.
Then select Debug multithreaded or multithreaded in the use Run-time library.
which
single-threaded single thread static link library (release version)
multithreaded multithreaded static link library (release version)
multithreaded DLL multi-threaded dynamic link library (release version)
Debug single-threaded single thread static link library (Debug version)
Debug multithreaded multithreaded static link library (Debug version)
Debug multithreaded DLL multithreaded dynamic link library (Debug version)
Select Debug multithreaded (if you are in the Win32 debug environment)
How the console program in Visual uses the MFC class library