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