📄 desforaspimpl.h
字号:
// DESFORASPIMPL.H : Declaration of the TDesForAspImpl
#ifndef DesForAspImplH
#define DesForAspImplH
#define ATL_APARTMENT_THREADED
#include "ActivXOfDes_TLB.H"
/////////////////////////////////////////////////////////////////////////////
// TDesForAspImpl Implements IDesForAsp, default interface of DesForAsp
// ThreadingModel : Apartment
// Dual Interface : TRUE
// Event Support : FALSE
// Default ProgID : ActivXOfDes.DesForAsp
// Description :
/////////////////////////////////////////////////////////////////////////////
class ATL_NO_VTABLE TDesForAspImpl :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<TDesForAspImpl, &CLSID_DesForAsp>,
public IDispatchImpl<IDesForAsp, &IID_IDesForAsp, &LIBID_ActivXOfDes>
{
public:
TDesForAspImpl()
{
}
// Data used when registering Object
//
DECLARE_THREADING_MODEL(otApartment);
DECLARE_PROGID("ActivXOfDes.DesForAsp");
DECLARE_DESCRIPTION("");
// Function invoked to (un)register object
//
static HRESULT WINAPI UpdateRegistry(BOOL bRegister)
{
TTypedComServerRegistrarT<TDesForAspImpl>
regObj(GetObjectCLSID(), GetProgID(), GetDescription());
return regObj.UpdateRegistry(bRegister);
}
BEGIN_COM_MAP(TDesForAspImpl)
COM_INTERFACE_ENTRY(IDesForAsp)
COM_INTERFACE_ENTRY2(IDispatch, IDesForAsp)
END_COM_MAP()
// IDesForAsp
public:
};
#endif //DesForAspImplH
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -