home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / freethrd / server / preserve.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  1.7 KB  |  43 lines

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