<a href="http://www.filediag.com/dll/exe/mfc100ud.dll.html">http://www.filediag.com/dll/exe/mfc100ud.dll.html</a>
使用VC2010生成的可執行程式移植到其他環境中運作,會提示“mfc100ud.dll丢失”。
打開項目,選擇屬性,分三步:
(1)選擇左上角的configuration->Active(Debug)
configuration properties->general->use of MFC,選擇use MFC in a static library。
(2)左上角configuration-> debug
C/C++->code generation->runtime library->multi-threaded debug(/MTd)
(3)configuration->release
C/C++->code generation->runtime library->multi-threaded(/MT)
"OK",移植到其他機器上好使!
附:之前單純的設定第一步時,系統提示要加什麼“#define _AFXDLL”什麼的,但是經過上面三步曲之後,留有那個反而是個禍,注釋掉編譯成功,運作也好使!
<a href="http://hi.baidu.com/tag/Vc/feeds">#Vc</a>