2016년 2월 14일 일요일

[C++]MFC, Release method including static library

When you release your project without static library, the released exe. file would not work on other PC. That is because libraries related to your project are not included in your released file. Here I will introduce the release method including static library to prevent the happening described above.

1) In your project properties, set configuration from debug to release.
2) Click the General tab of configuration properties, 
3) Change 'Use MFC in a shared DLL' to 'Use MFC in a static library'
4) Nextly, move the Code generation tab of C/C++
5) Change '/MD' to '/MT' in the runtime library.

details are shown in below figure.





댓글 없음:

댓글 쓰기