home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class COleObjectFactory

CObject
   |
   +--CCmdTarget
         |
         +--COleObjectFactory

   in AFXDISP.H
Direct Known Subclasses:
COleTemplateServer

class COleObjectFactory
extends CCmdTarget

Class Factory implementation (binds OLE class factory -> runtime class) (all specific class factories derive from this class factory)


Inner Classes, Typedefs, and Enums
class COleObjectFactory::XClassFactory
          
 
Field Summary
protected BYTE m_bLicenseChecked
          
protected BYTE m_bLicenseValid
          
protected BOOL m_bMultiInstance
          
protected BYTE m_bOAT
          
protected BYTE m_bRegistered
          
protected CLSID m_clsid
          
protected DWORD m_dwRegister
          
protected LPCTSTR m_lpszProgID
          
 COleObjectFactory* m_pNextFactory
          
protected CRuntimeClass* m_pRuntimeClass
          
 COleObjectFactory::XClassFactory m_xClassFactory
          
   
Fields inherited from class CCmdTarget
messageMap, commandMap, dispatchMap, connectionMap, interfaceMap, eventsinkMap, m_dwRef, m_pOuterUnknown, m_xInnerUnknown, m_xDispatch, m_bResultExpected, m_xConnPtContainer
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
COleObjectFactory( REFCLSID clsid, CRuntimeClass* pRuntimeClass, BOOL bMultiInstance, LPCTSTR lpszProgID )
          
virtual ~COleObjectFactory()
          
 
Method Summary
 REFCLSID GetClassID() const
          
protected virtual BOOL GetLicenseKey( DWORD dwReserved, BSTR* pbstrKey )
          
 BOOL IsLicenseValid()
          
 virtual BOOL IsRegistered() const
          
protected virtual CCmdTarget* OnCreateObject()
          
 virtual BOOL Register()
          
 static BOOL PASCAL RegisterAll()
          
 void Revoke()
          
 static void PASCAL RevokeAll()
          
 BOOL Unregister()
          
 static BOOL PASCAL UnregisterAll()
          
protected virtual BOOL UpdateRegistry( BOOL bRegister )
          
 void UpdateRegistry( LPCTSTR lpszProgID = NULL )
          
 static BOOL PASCAL UpdateRegistryAll( BOOL bRegister = TRUE )
          
protected virtual BOOL VerifyLicenseKey( BSTR bstrKey )
          
protected virtual BOOL VerifyUserLicense()
          
   
Methods inherited from class CCmdTarget
GetIDispatch, FromIDispatch, IsResultExpected, EnableAutomation, EnableConnections, BeginWaitCursor, EndWaitCursor, RestoreWaitCursor, EnumOleVerbs, DoOleVerb, OnCmdMsg, OnFinalRelease, IsInvokeAllowed, EnableTypeLib, GetTypeInfoOfGuid, GetDispatchIID, GetTypeInfoCount, GetTypeLibCache, GetTypeLib, GetNotSupported, SetNotSupported, GetRoutingView, GetRoutingFrame, GetRoutingView_, GetRoutingFrame_, GetMessageMap, GetCommandMap, GetDispatchMap, GetConnectionMap, GetInterfaceMap, GetEventSinkMap, EnableAggregation, ExternalDisconnect, GetControllingUnknown, InternalQueryInterface, InternalAddRef, InternalRelease, ExternalQueryInterface, ExternalAddRef, ExternalRelease, GetInterface, QueryAggregates, OnCreateAggregates, GetInterfaceHook, GetStandardProp, SetStandardProp, GetEntryCount, GetDispEntry, MemberIDFromName, GetStackSize, PushStackArgs, CallMemberFunc, OnEvent, GetEventSinkEntry, GetExtraConnectionPoints, GetConnectionHook
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_bLicenseChecked

protected BYTE m_bLicenseChecked;

m_bLicenseValid

protected BYTE m_bLicenseValid;

m_bMultiInstance

protected BOOL m_bMultiInstance;

m_bOAT

protected BYTE m_bOAT;

m_bRegistered

protected BYTE m_bRegistered;

m_clsid

protected CLSID m_clsid;

m_dwRegister

protected DWORD m_dwRegister;

m_lpszProgID

protected LPCTSTR m_lpszProgID;

m_pNextFactory

public COleObjectFactory* m_pNextFactory;

m_pRuntimeClass

protected CRuntimeClass* m_pRuntimeClass;

m_xClassFactory

public COleObjectFactory::XClassFactory m_xClassFactory;


Constructor Detail

COleObjectFactory

public COleObjectFactory( REFCLSID clsid, CRuntimeClass* pRuntimeClass, BOOL bMultiInstance, LPCTSTR lpszProgID );

~COleObjectFactory

public virtual ~COleObjectFactory();


Method Detail

GetClassID

public REFCLSID GetClassID() const;

GetLicenseKey

protected virtual BOOL GetLicenseKey( DWORD dwReserved, BSTR* pbstrKey );

IsLicenseValid

public BOOL IsLicenseValid();

IsRegistered

public virtual BOOL IsRegistered() const;

OnCreateObject

protected virtual CCmdTarget* OnCreateObject();

Register

public virtual BOOL Register();

RegisterAll

public static BOOL PASCAL RegisterAll();

Revoke

public void Revoke();

RevokeAll

public static void PASCAL RevokeAll();

Unregister

public BOOL Unregister();

UnregisterAll

public static BOOL PASCAL UnregisterAll();

UpdateRegistry

protected virtual BOOL UpdateRegistry( BOOL bRegister );

UpdateRegistry

public void UpdateRegistry( LPCTSTR lpszProgID = NULL );

UpdateRegistryAll

public static BOOL PASCAL UpdateRegistryAll( BOOL bRegister = TRUE );

VerifyLicenseKey

protected virtual BOOL VerifyLicenseKey( BSTR bstrKey );

VerifyUserLicense

protected virtual BOOL VerifyUserLicense();

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD