mfc中的.rc和.rc2出错fatal error RC1015: cannot open include file 'res\ModalD
生活随笔
收集整理的這篇文章主要介紹了
mfc中的.rc和.rc2出错fatal error RC1015: cannot open include file 'res\ModalD
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
fatal error RC1015: cannot open include file 'res\ModalDlg_MFC.rc2'. 今天學(xué)習(xí)windows編程,照著書上改著改著不知道怎么改的出來個奇怪的錯誤(windows編程循序漸進(jìn)的源碼):fatal error RC1015: cannot open include file 'res\ModalDlg_MFC.rc2'.Error executing rc.exe.郁悶(源碼是vs2005寫的,我用的是2010)。我找了一下,當(dāng)前目錄下只有一個ModalDlg_MFC.rc,和要求的差一個2字,我將其拷貝去res目錄下,將其改名為ModalDlg_MFC.rc2,但是又會報?fatal error RC1052: compiler limit : #if or #ifdef blocks nested too deeply錯我,這個資源文件我就搞不定了,網(wǎng)上說是少加了#endif,但是我加了下,沒用,后面我想了下,他不是沒有這個文件嗎,我自己新建了一個txt文件,將其改名為ModalDlg_MFC.rc2,然后重新編譯一下就ok了。
總結(jié)
以上是生活随笔為你收集整理的mfc中的.rc和.rc2出错fatal error RC1015: cannot open include file 'res\ModalD的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: JM与h264标准中的关键字说明
- 下一篇: vs2010项目属性配置