[問題] mfc讀取txt出現錯誤

看板C_and_CPP (C/C++)作者 (誠實可靠小郎君~阿弘)時間16年前 (2009/03/05 20:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
以下是小弟的code #include"stdafx.h" #include<afx.h> CString strLine,strTemp; CStdioFile fr("C:\\12.txt", CFile::modeRead); while(fr.ReadString(strTemp)) { strLine+=strTemp + "\n"; } fr.Close(); richTextBox1->Text = strLine; 編譯後出現  >c:\documents and settings\administrator\桌面\vvv\painter4\painter4.cpp(1) : fatal error C1083: 無法開啟包含檔案: 'stdafx.h': No such file or directory 剛接觸mfc 很多不懂..麻煩大家了 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.232.225.168
文章代碼(AID): #19hxyw2l (C_and_CPP)
文章代碼(AID): #19hxyw2l (C_and_CPP)