IDispatchPtr m_wordDoc;
IDispatchPtr m_wordDoc;
头文件:
#include <atlbase.h>
#include <atlwin.h>
#include <windows.h>
#include <comdef.h>
#pragma comment(lib,"atl")
#pragma comment(lib,"User32.lib")
// 成员变量
CAxWindow m_wordCtrl;
IDispatchPtr m_wordDoc;