home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / Profiler / jviewprf / project.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-04  |  1.1 KB  |  53 lines

  1. /*
  2.  * project.hpp - Project C++ header file.
  3.  *
  4.  * (C) Copyright 1995 - 1999 Microsoft Corporation.  All rights reserved.
  5.  */
  6.  
  7.  
  8. #ifndef __PROJECT_HPP__
  9. #define __PROJECT_HPP__
  10.  
  11.  
  12. /* System Headers
  13.  *****************/
  14.  
  15. #define WIN32_LEAN_AND_MEAN     // for windows.h
  16. #define INC_OLE2                // for windows.h
  17. #define CONST_VTABLE            // for objbase.h
  18.  
  19. #pragma warning(disable:4514)   // "unreferenced inline function" warning
  20.  
  21. #pragma warning(disable:4201)   // "nameless struct/union" warning
  22.  
  23. #include <windows.h>
  24.  
  25. #pragma warning(default:4201)   // "nameless struct/union" warning
  26.  
  27. #include <limits.h>
  28. #define DWORD_MAX ULONG_MAX
  29.  
  30. #define ARRAY_ELEMENTS(rg) (sizeof(rg)/sizeof((rg)[0]))
  31.  
  32. #define _QUOTE(s) #s
  33. #define QUOTE(s) _QUOTE(s)
  34.  
  35.  
  36. /* Constants
  37.  ************/
  38.  
  39. /*
  40.  * constants to be used with #pragma data_seg()
  41.  *
  42.  * These section names must be given the associated attributes in the project's
  43.  * module definition file.
  44.  */
  45.  
  46. #define DATA_SEG_READ_ONLY      ".rdata"
  47. #define DATA_SEG_PER_INSTANCE   ".data"
  48. #define DATA_SEG_SHARED         ".shared"
  49.  
  50.  
  51. #endif  // ! __PROJECT_HPP__
  52.  
  53.