ICF.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- //**********************************************************************
- // File name: icf.h
- //
- // Definition of CClassFactory
- //
- // Copyright (c) 1993-1997 Microsoft Corporation. All rights reserved.
- //**********************************************************************
- #if !defined( _ICF_H_)
- #define _ICF_H_
- class CSimpSvrApp;
- interface CClassFactory : IClassFactory
- {
- private:
- int m_nCount; // reference count
- CSimpSvrApp FAR * m_lpApp;
- public:
- CClassFactory::CClassFactory(CSimpSvrApp FAR * lpApp)
- {
- OutputDebugString("In CClassFactory's Constructorrn");
- m_lpApp = lpApp;
- m_nCount = 0;
- };
- CClassFactory::~CClassFactory()
- {
- OutputDebugString("In CClassFactory's Destructorrn");
- };
- // IUnknown Methods
- STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
- STDMETHODIMP_(ULONG) AddRef ();
- STDMETHODIMP_(ULONG) Release ();
- STDMETHODIMP CreateInstance (LPUNKNOWN pUnkOuter,
- REFIID riid,
- LPVOID FAR* ppvObject);
- STDMETHODIMP LockServer ( BOOL fLock);
- };
- #endif