Server.h
上传用户:easylife05
上传日期:2007-02-14
资源大小:393k
文件大小:1k
- // Server.h : CServer 的声明
- #pragma once
- #include "resource.h" // 主符号
- #include "Platform.h"
- #include "platformdoc.h"
- #include "platformview.h"
- // CServer
- class CPlatformDoc;
- class CPlatformView;
- class ATL_NO_VTABLE CServer :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CServer, &CLSID_Server>,
- public IServer
- {
- public:
- CServer()
- {
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_SERVER)
- BEGIN_COM_MAP(CServer)
- COM_INTERFACE_ENTRY(IServer)
- END_COM_MAP()
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- HRESULT FinalConstruct()
- {
- return S_OK;
- }
-
- void FinalRelease()
- {
- }
-
- STDMETHOD(GetDataPoint)(myGraph** dPointer);
- public:
- CPlatformDoc* m_pDoc;
- CPlatformView* m_pView;
- STDMETHOD(NewDataCircle)(myGraph* pGraph);
- };
- OBJECT_ENTRY_AUTO(__uuidof(Server), CServer)