www.gusucode.com > 一些VC++网络编程实例源代码-源码程序 > 一些VC++网络编程实例源代码-源码程序\code\十三章\FirstATL\Myclass.cpp
//Download by http://www.NewXing.com // Myclass.cpp : Implementation of CMyclass #include "stdafx.h" #include "FirstATL.h" #include "Myclass.h" ///////////////////////////////////////////////////////////////////////////// // CMyclass STDMETHODIMP CMyclass::SayHello() { AFX_MANAGE_STATE(AfxGetStaticModuleState()) AfxMessageBox("Welcom to use my class"); return S_OK; } STDMETHODIMP CMyclass::SayGoodbye() { AFX_MANAGE_STATE(AfxGetStaticModuleState()) // TODO: Add your implementation code here return S_OK; }