MyBstr.h
上传用户:weisheen
上传日期:2022-07-09
资源大小:19390k
文件大小:1k
- // MyBstr.h : Declaration of the CMyBstr
- #ifndef __MYBSTR_H_
- #define __MYBSTR_H_
- #include "resource.h" // main symbols
- /////////////////////////////////////////////////////////////////////////////
- // CMyBstr
- class ATL_NO_VTABLE CMyBstr :
- public CComObjectRootEx<CComSingleThreadModel>,
- public CComCoClass<CMyBstr, &CLSID_MyBstr>,
- public IDispatchImpl<IMyBstr, &IID_IMyBstr, &LIBID_DEMOBSTRLib>
- {
- public:
- CMyBstr()
- {
- this->m_uid=NULL;
- this->m_pwd=NULL;
- }
- DECLARE_REGISTRY_RESOURCEID(IDR_MYBSTR)
- DECLARE_PROTECT_FINAL_CONSTRUCT()
- BEGIN_COM_MAP(CMyBstr)
- COM_INTERFACE_ENTRY(IMyBstr)
- COM_INTERFACE_ENTRY(IDispatch)
- END_COM_MAP()
- // IMyBstr
- public:
- STDMETHOD(Authen)(/*[in]*/ BSTR name, /*[in]*/ BSTR pwd, /*[out]*/ BSTR* Result);
- private:
- BSTR m_uid;
- BSTR m_pwd;
- };
- #endif //__MYBSTR_H_