当前位置: 首页>>代码示例>>C++>>正文


C++ CComModule::GetClassObject方法代码示例

本文整理汇总了C++中CComModule::GetClassObject方法的典型用法代码示例。如果您正苦于以下问题:C++ CComModule::GetClassObject方法的具体用法?C++ CComModule::GetClassObject怎么用?C++ CComModule::GetClassObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CComModule的用法示例。


在下文中一共展示了CComModule::GetClassObject方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: DllGetClassObject

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
	#ifndef NO_EXPIRATION_DATE

	// check if we are outdated
	// delete this for an official release
	SYSTEMTIME SystemTime;
	GetSystemTime(&SystemTime);
	if ((SystemTime.wYear * 500 + SystemTime.wMonth * 35 + SystemTime.wDay) >
		(EXP_YEAR         * 500 + EXP_MONTH         * 35 + EXP_DAY)) {
		char szTitle[256];
		LoadString(_Module.m_hInst, IDS_EXPIREDTITLE, szTitle, sizeof szTitle);
		char szText[256];
		LoadString(_Module.m_hInst, IDS_EXPIRED, szText, sizeof szText);
		MessageBox(0, szText, szTitle, MB_ICONINFORMATION|MB_OK);
		return CLASS_E_CLASSNOTAVAILABLE;
	}

	#endif

/*
	if ( !IsSingleThreadedApartment() ) {
		MessageBox(0, "Wrong threading model, please reinstall VPinMAME!", "Unable to run", MB_ICONINFORMATION|MB_OK);
		return CLASS_E_CLASSNOTAVAILABLE;
	}
*/

#ifdef _MERGE_PROXYSTUB
    if (PrxDllGetClassObject(rclsid, riid, ppv) == S_OK)
        return S_OK;
#endif
    return _Module.GetClassObject(rclsid, riid, ppv);
}
开发者ID:CarnyPriest,项目名称:SAMbuild,代码行数:33,代码来源:VPinMAME.cpp

示例2: getClassObject

HRESULT OPCEngine::getClassObject(
	IN REFCLSID rclsid, 
	IN REFIID riid, 
	OUT LPVOID *ppvObj)
{ 
	return _Module.GetClassObject(rclsid, riid, ppvObj);
}
开发者ID:LM25TTD,项目名称:ATCMcontrol_Engineering,代码行数:7,代码来源:OPCEngine.cpp

示例3: DllGetClassObject

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
#ifdef _MERGE_PROXYSTUB
    if (PrxDllGetClassObject(rclsid, riid, ppv) == S_OK)
        return S_OK;
#endif
    return _Module.GetClassObject(rclsid, riid, ppv);
}
开发者ID:LM25TTD,项目名称:ATCMcontrol_Engineering,代码行数:8,代码来源:StandardProjectWizardApp.cpp

示例4: DllGetClassObject

extern "C" STDAPI DllGetClassObject(
    __in            REFCLSID    rclsid,
    __in            REFIID      riid,
    __deref_out     LPVOID      *ppv)
{
    return _Module.GetClassObject(rclsid, riid, ppv);

}
开发者ID:kcrazy,项目名称:winekit,代码行数:8,代码来源:extend.cpp

示例5:

/////////////////////////////////////////////////////////////////////////////
//++
//
//  DllGetClassObject
//
//  Description:
//      Returns a class factory to create an object of the requested type
//
//  Arguments:
//      rclsidIn    - CLSID of the class to create.
//      riidIn      - Requested interface of the class.
//      ppvOut      - Pointer to send the class back to the caller.
//
//  Return Value:
//      S_OK
//          Success.
//
//      Other errors as HRESULTs...
//
//--
/////////////////////////////////////////////////////////////////////////////
STDAPI
DllGetClassObject(
      REFCLSID  rclsidIn
    , REFIID    riidIn
    , LPVOID *  ppvOut
    )
{
    return _Module.GetClassObject( rclsidIn, riidIn, ppvOut );

}  //*** DllGetClassObject
开发者ID:Essjay1,项目名称:Windows-classic-samples,代码行数:31,代码来源:ClipBook+ServerEx.cpp

示例6: DllGetClassObject

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
    // Initialize the application, if needed
    g_papp->Initialize(ZString());

#ifdef _MERGE_PROXYSTUB
    if (S_OK == PrxDllGetClassObject(rclsid, riid, ppv))
        return S_OK;
#endif

    return _Module.GetClassObject(rclsid, riid, ppv);
}
开发者ID:borgified,项目名称:Allegiance,代码行数:12,代码来源:TCObj.cpp

示例7:

//2 使用类厂创建对象,返回接口
IUnknown* MyCreateInstance2(CLSID clsid)
{
   //1 根据组件ID获取组件的类厂接口
	IClassFactory* piFactory=NULL;
	_Module.GetClassObject(clsid,IID_IClassFactory,
		(LPVOID*)&piFactory);
	//2 使用类厂创建组件,返回接口
	IUnknown* piUnknown=NULL;
	piFactory->CreateInstance(NULL,IID_IUnknown,
		(LPVOID*)&piUnknown);
	return piUnknown;
} 
开发者ID:dekai-wang,项目名称:TestCode,代码行数:13,代码来源:ComInterface.cpp

示例8: DllGetClassObject

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv) {
	return _Module.GetClassObject(rclsid, riid, ppv);
}
开发者ID:hkaiser,项目名称:TRiAS,代码行数:3,代码来源:PolygisDAT.cpp

示例9: DllGetClassObject

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	return _Module.GetClassObject(rclsid, riid, ppv);
}
开发者ID:RJVB,项目名称:SS_Log,代码行数:5,代码来源:SS_Log_AddIn.cpp

示例10: DllGetClassObject

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
    ATLTRACE("DllGetClassObject\n");

    return _Module.GetClassObject(rclsid, riid, ppv);
}
开发者ID:MuniyappanV,项目名称:jdk-source-code,代码行数:6,代码来源:DllMain.cpp

示例11: DllGetClassObject

STDAPI DllGetClassObject(_In_ REFCLSID rclsid, _In_ REFIID riid, _Outptr_ LPVOID* ppv)
{
	TraceMsg( L"-->DllGetClassObject.\n");

	return _Module.GetClassObject(rclsid, riid, ppv);
}
开发者ID:0xhack,项目名称:Windows-driver-samples,代码行数:6,代码来源:dllmain.cpp


注:本文中的CComModule::GetClassObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。