home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / ba / tvxsamp / stdafx.h < prev    next >
C/C++ Source or Header  |  1997-09-03  |  2KB  |  45 lines

  1. // stdafx.h : TV Viewer sample application
  2. //
  3. // Copyright (C) 1997 Microsoft Corporation
  4. // All rights reserved.
  5. //
  6. // This source code is only intended as a supplement to the
  7. // Broadcast Architecture Programmer's Reference.
  8. // For detailed information regarding Broadcast
  9. // Architecture, see the reference.
  10. //
  11.  
  12. #if !defined(AFX_STDAFX_H__FF52102E_0CE4_11D1_98AE_080009DC95C5__INCLUDED_)
  13. #define AFX_STDAFX_H__FF52102E_0CE4_11D1_98AE_080009DC95C5__INCLUDED_
  14.  
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18.  
  19. #define VC_EXTRALEAN        // Exclude rarely-used stuff from Windows headers
  20.  
  21. #include <afxwin.h>         // MFC core and standard components
  22. #include <afxext.h>         // MFC extensions
  23. #include <afxdisp.h>        // MFC OLE automation classes
  24. #ifndef _AFX_NO_AFXCMN_SUPPORT
  25. #include <afxcmn.h>            // MFC support for Windows Common Controls
  26. #endif // _AFX_NO_AFXCMN_SUPPORT
  27.  
  28.  
  29. // This macro is the same as IMPLEMENT_OLECREATE, except it passes TRUE
  30. //  for the bMultiInstance parameter to the COleObjectFactory constructor.
  31. //  We want a separate instance of this application to be launched for
  32. //  each OLE automation proxy object requested by automation controllers.
  33. #ifndef IMPLEMENT_OLECREATE2
  34. #define IMPLEMENT_OLECREATE2(class_name, external_name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
  35.     AFX_DATADEF COleObjectFactory class_name::factory(class_name::guid, \
  36.         RUNTIME_CLASS(class_name), TRUE, _T(external_name)); \
  37.     const AFX_DATADEF GUID class_name::guid = \
  38.         { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } };
  39. #endif // IMPLEMENT_OLECREATE2
  40.  
  41. //{{AFX_INSERT_LOCATION}}
  42. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  43.  
  44. #endif // !defined(AFX_STDAFX_H__FF52102E_0CE4_11D1_98AE_080009DC95C5__INCLUDED_)
  45.