How to convert a Microsoft Visual Studio project from VC6 to VC2017
- In VS2017, open the *.dsp file of the project to be converted. Accept the suggestion to convert the project to the new VS2017.
- In the menu: Project\Properties. Change the selection to “All Configurations”
- On the General tab: Character Set: MBCS
- On the C/C++ tab: Enable Function-Level linking: Yes (/Gy)
- On the C/C++ tab: Warning Level: /W2
- On the Linker tab: Image Has Safe Exception Handlers: No
- On the Linker tab: Generate Manifest: No
- In the menu: View\Solution Explorer. Browse to and open stdafx.h, and add these lines near the beginning, after the #include guards:
#define _WIN32_WINNT 0x05010000 // Might not need this
#define _CRT_SECURE_NO_WARNINGS
#define _AFX_NO_MFC_CONTROLS_IN_DIALOGS
#define _CRT_SECURE_NO_WARNINGS
#define _AFX_NO_MFC_CONTROLS_IN_DIALOGS
Comments
Post a Comment