Wednesday, January 3, 2018

Statically linking VC++ libraries

Open the C++ project properties:

If using MFC:
• Configuration Properties -> General: Where it reads Use of MFC, change to Use MFC in a Static Library.

If using ATL:
• Configuration Properties -> General: Where it reads Use of ATL, change to Static Link to ATL.

The CRT:
• Configuration Properties -> C/C++ -> Code Generation: Where it reads Runtime Library, change to Multi-Threaded (/MT).

The manifest must go:
• Configuration Properties -> Manifest Tool -> Input and Output: Where it reads Embed Manifest, change to No.

No comments: