www.pudn.com > CallbackTimerDemo.rar > Demo1.cpp
// Demo1.cpp: implementation of the CDemo1 class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TimerDemo.h"
#include "Demo1.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CDemo1::CDemo1()
{
pThis = this;
}
CDemo1::~CDemo1()
{
}
void CDemo1::DemoStaticFunc(CDemo1 *pDemo)
{
pDemo->DemoFunc();
}
void CDemo1::DemoFunc()
{
AfxMessageBox("您好,这是静态成员函数调用动态成员函数的结果!");
}