How the console program in Visual uses the MFC class library

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.