问题是这样:
我新建了一个MFC的对话框工程,想在工程中加入新的.cpp与.h,例如我加入了一个example.h与一个example.cpp
在example.h中加入如下代码:class CExample 
{
public: void Message(CString s);
};在example.cpp中加入如下代码:
#include "stdafx.h"
#include "download.h"//我的工程名称download
#include "example.h"
void CExample::Message(CString s)
{
AfxMessageBox(s);
}
然后再xxxxDlg.h中加入CExample ex;在xxxxDlg.cpp中调用ex.Message就出问题了
*程序编译没有问题,但无法运行。貌似是CExample ex;的问题。是不是我添加新文件的方法错了,谁教教我,折腾一天了