莫名其妙的错:include file: 'stdafx.h': No such file or directory
我自己加了文件clsData.h clsData.cpp
程序如下:
#include <stdafx.h>
#include "clsData.h"
unsigned long clsData::OperaterData()
{
AfxMessageBox("eeeee");
return 2;
}
报错:
d:\Êý³å³ÌÐò\code\¶¥²ã°ü\clsdata.cpp(2) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Error executing cl.exe.
第二个问题:
如果我要用其它类的变量怎么处理呀???