天天看點

mfc mfc100ud.dll丢失問題

<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-&gt;Active(Debug)

            configuration properties-&gt;general-&gt;use of MFC,選擇use MFC in a static library。

     (2)左上角configuration-&gt; debug

             C/C++-&gt;code generation-&gt;runtime library-&gt;multi-threaded debug(/MTd)

     (3)configuration-&gt;release

             C/C++-&gt;code generation-&gt;runtime library-&gt;multi-threaded(/MT)

"OK",移植到其他機器上好使!

    附:之前單純的設定第一步時,系統提示要加什麼“#define _AFXDLL”什麼的,但是經過上面三步曲之後,留有那個反而是個禍,注釋掉編譯成功,運作也好使!

<a href="http://hi.baidu.com/tag/Vc/feeds">#Vc</a>

繼續閱讀