Beispiel #1
0
// DllGetClassObject - Returns class factory
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	if (S_OK == _AtlModule.GetClassObject(rclsid, riid, ppv))
		return S_OK;
	return AfxDllGetClassObject(rclsid, riid, ppv);
}
Beispiel #2
0
HRESULT _VMD_EXPORT FAR PASCAL DllGetClassObject (REFCLSID rclsid, REFIID riid, 
					          LPVOID FAR *ppv)
{
// zuerst MFC interne Abfragen
	AFX_MANAGE_STATE(AfxGetModuleState());
	return AfxDllGetClassObject (rclsid, riid, ppv);
}
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
//	AFX_MANAGE_STATE(_AfxGetOleModuleState());
    AFX_MANAGE_STATE(_afxModuleAddrThis);
    return AfxDllGetClassObject(rclsid, riid, ppv);
}
Beispiel #4
0
STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID FAR *ppv)
{
    AFX_MANAGE_STATE(_afxModuleAddrThis);
    return AfxDllGetClassObject (rclsid, riid, ppv);
}