Multiple Engineering Problems in vs2010 Compilation

Source: Internet
Author: User

Use vs2010 to compile the source code of the original project file copied from vc6.0. Many error messages are prompted. I feel like I can't help it. Many original functions and API parameters indicate the type.

Error or incompatibility. Baidu:

Vc6.0 uses the asiic character, while vs2010 uses Unicode by default. Right-click the attribute on the project and change the default character set

"No set", as shown in


Recompile the entire solution, and many errors that do not match the original type disappear. For example, char * and char arrays cannot be converted. Tchar and lpcwstr cannot be converted.

The second problem is that multiple projects are created in a solution. An error occurred while prompting that the external symbol lnk2019 could not be found. Many Baidu websites say that header files are not defined. In fact, it should

Grasp one principle: Only one of multiple projects is the main project, which will be compiled and translated into EXE files in the future. Other projects are auxiliary. Only. lib or DLL files can be compiled. Then include

Come in. In my low-level errors, the configuration type of multiple engineering files is application(.exe). lnk2019. The cause is: some of them are the secondary engineering files that cannot be found.

Main (console) or winmain (Windows). Other functions of the connected project file cannot be found in the main project file. Modify the configuration type of the auxiliary project file to. lib or DLL.

Set the linker option.


 

Multiple Engineering Problems in vs2010 Compilation

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.