Run the executable program generated by vc2010 to another environment, and the message "mfc100ud. dll loss" is displayed ".
Open the project and select Properties in three steps:
(1) Select Configuration-> active (Debug) in the upper left corner)
Configuration properties-> General-> Use of MFC, select use MFC in a static library.
(2) configuration-> debug in the upper left corner
C/C ++-> code generation-> Runtime Library-> multi-threaded debug (/MTD)
(3) configuration-> release
C/C ++-> code generation-> Runtime Library-> multi-threaded (/mt)
"OK", port it to another machine!
Appendix: when we set the first step, the system prompts you to add "# DEFINE _ afxdll" or something. However, after the three steps above, it is a curse to leave it. The compilation is successfully commented out, running is good!
From: http://hi.baidu.com/mrqspulajtbjotq/item/40d8a03a4659c8c71b9696bc