IAS.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- //**********************************************************************
- // File name: IAS.H
- //
- // Definition of CAdviseSink
- //
- // Copyright (c) 1992 - 1997 Microsoft Corporation. All rights reserved.
- //**********************************************************************
- #if !defined( _IAS_H_ )
- #define _IAS_H_
- #include "assert.h"
- class CSimpleSite;
- interface CAdviseSink : public IAdviseSink
- {
- int m_nCount;
- CSimpleSite FAR * m_pSite;
- CAdviseSink(CSimpleSite FAR * pSite) {
- OutputDebugString("In IAS's constructorrn");
- m_pSite = pSite;
- m_nCount = 0;
- };
- ~CAdviseSink() {
- OutputDebugString("In IAS's destructorrn");
- assert(m_nCount == 0);
- } ;
- STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
- STDMETHODIMP_(ULONG) AddRef ();
- STDMETHODIMP_(ULONG) Release ();
- // *** IAdviseSink methods ***
- STDMETHODIMP_(void) OnDataChange (FORMATETC FAR* pFormatetc, STGMEDIUM FAR* pStgmed);
- STDMETHODIMP_(void) OnViewChange (DWORD dwAspect, LONG lindex);
- STDMETHODIMP_(void) OnRename (LPMONIKER pmk);
- STDMETHODIMP_(void) OnSave ();
- STDMETHODIMP_(void) OnClose ();
- };
- #endif