DATATRAN.H
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 1k
Category:

Windows Develop

Development Platform:

Visual C++

  1. /*
  2.  * DATATRAN.H
  3.  * Data Transfer Object Chapter 12
  4.  *
  5.  * Definitions, classes, and prototypes for a DLL that provides
  6.  * data transfer objects.
  7.  *
  8.  * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  9.  *
  10.  * Kraig Brockschmidt, Microsoft
  11.  * Internet  :  kraigb@microsoft.com
  12.  * Compuserve:  >INTERNET:kraigb@microsoft.com
  13.  */
  14. #ifndef _DATATRAN_H_
  15. #define _DATATRAN_H_
  16. #include "dataobj.h"
  17. //DATATRAN.CPP
  18. void ObjectDestroyed(void);
  19. //This class factory object creates Data Transfer Objects.
  20. class CDataTransferClassFactory : public IClassFactory
  21.     {
  22.     protected:
  23.         ULONG           m_cRef;
  24.     public:
  25.         CDataTransferClassFactory(void);
  26.         ~CDataTransferClassFactory(void);
  27.         //IUnknown members
  28.         STDMETHODIMP         QueryInterface(REFIID, PPVOID);
  29.         STDMETHODIMP_(ULONG) AddRef(void);
  30.         STDMETHODIMP_(ULONG) Release(void);
  31.         //IClassFactory members
  32.         STDMETHODIMP         CreateInstance(LPUNKNOWN, REFIID
  33.                                  , PPVOID);
  34.         STDMETHODIMP         LockServer(BOOL);
  35.     };
  36. typedef CDataTransferClassFactory *PCDataTransferClassFactory;
  37. #endif //_DATATRAN_H_