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

Windows Develop

Development Platform:

Visual C++

  1. /*+==========================================================================
  2.   File:      PRESERVE.H
  3.   Summary:   Precompiled header include file for the aggregatable COBall 
  4.        COM object class.
  5.   Origin:    10-1-96: paulring -- port to VC5 native COM support.
  6. ----------------------------------------------------------------------------
  7.   This file is part of the Microsoft OLE Tutorial Code Samples.
  8.   Copyright (C) Microsoft Corporation, 1996.  All rights reserved.
  9.   This source code is intended only as a supplement to Microsoft
  10.   Development Tools and/or on-line documentation.  See these other
  11.   materials for detailed information regarding Microsoft code samples.
  12.   THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  13.   KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.   IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  15.   PARTICULAR PURPOSE.
  16. ==========================================================================+*/
  17. #ifndef _PRESERVE_H_
  18. #define _PRESERVE_H_
  19. #include "iball.h"
  20. #include "apputil.h"
  21. #include "server.h"
  22. // NOTE:  There are problems with iball.tlb containing definitions for
  23. //  tagRECT and tagPOINT and thus in iball.tlh.  Therefore iball.tlh
  24. //  must be wrapped in a namespace to avoid duplicate definitions.  Whence
  25. //  the property Ball and method Reset are actually defined for 
  26. //  BallLib::tagRECT and BallLib::tagPOINT.  This situation will be 
  27. //  temporary, yet some inconvenience can be alleviated with the following
  28. //  macros.
  29. //    
  30. #define CAST_RECT(x) reinterpret_cast<BallLib::tagRECT> (x)
  31. #define CAST_POINT(x) reinterpret_cast<BallLib::tagPOINT> (x)
  32. #endif // _PRESERVE_H_