home *** CD-ROM | disk | FTP | other *** search
/ PC Press 1997 July / Sezamfile97_2.iso / windows / program / activex / axtsamp.exe / TSBRANCH.EXE / DLLSKEL / DLLSKELI.H < prev    next >
C/C++ Source or Header  |  1996-12-29  |  4KB  |  102 lines

  1. /*+==========================================================================
  2.   File:      DLLSKELI.H
  3.  
  4.   Summary:   Internal include file for the DLLSKEL.DLL skeleton code sample.
  5.              Contains class declarations, Resource IDs and string macros for
  6.              internal use in constructing this DLL.  Instead of one
  7.              DLLSKEL.H we split what would be the content of that file
  8.              into two files.  One file, DLLSKEL.H has only the external
  9.              definitions needed for outside use of the DLL.  The other file,
  10.              this current DLLSKELI.H has definitions not needed by external
  11.              users of the DLL but needed for internal use.
  12.  
  13.              For a comprehensive tutorial code tour of DLLSKEL's
  14.              contents and offerings see the tutorial DLLSKEL.HTM file.
  15.              For more specific technical details on the internal workings
  16.              see the comments dispersed throughout the DLLSKEL source code.
  17.  
  18.   Classes:   none
  19.  
  20.   Functions: none
  21.  
  22.   Origin:    8-5-95: atrent - Editor-inheritance from the EXESKEL source.
  23.  
  24. ----------------------------------------------------------------------------
  25.   This file is part of the Microsoft ActiveX Tutorial Code Samples.
  26.  
  27.   Copyright (C) Microsoft Corporation, 1997.  All rights reserved.
  28.  
  29.   This source code is intended only as a supplement to Microsoft
  30.   Development Tools and/or on-line documentation.  See these other
  31.   materials for detailed information regarding Microsoft code samples.
  32.  
  33.   THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  34.   KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  35.   IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  36.   PARTICULAR PURPOSE.
  37. ==========================================================================+*/
  38.  
  39. #if !defined(DLLSKELI_H)
  40. #define DLLSKELI_H
  41.  
  42.  
  43. /*C+C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C
  44.   Class:    CDllData
  45.  
  46.   Summary:  Class to encapsulate global data of a the DLL.
  47.  
  48.   Methods:  none
  49. C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C-C*/
  50. class CDllData
  51. {
  52. public:
  53.   // A place to store the loaded instance of this DLL module.
  54.   HINSTANCE hDllInst;
  55.  
  56.   // A place in this instance data to save this DLL's user count.
  57.   int iUserCount;
  58.  
  59.   // A Pointer to a Message Box object.
  60.   CMsgBox* pMsgBox;
  61. };
  62.  
  63.  
  64. /*C+C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C
  65.   Class:    CDllShared
  66.  
  67.   Summary:  Class to encapsulate shared data of a the DLL.
  68.  
  69.   Methods:  none
  70. C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C-C*/
  71. class CDllShared
  72. {
  73. public:
  74.   // The hello counter. A global shared counter that is Incremented
  75.   // by all DLL users
  76.   int iHelloCount;
  77.  
  78.   // The global data instance counter. A count of the Processes that attach.
  79.   int iUserCount;
  80. };
  81.  
  82. // String Macros.
  83. #define ABOUT_TITLE_STR "DLLSKEL: Tutorial Code Sample"
  84.  
  85. // Dialog IDs.
  86. #define IDD_ABOUTBOX                1000
  87.  
  88. // Error-related String Identifiers.
  89. #define IDS_COMINITFAILED           2000
  90. #define IDS_DLLINITFAILED           2001
  91. #define IDS_OUTOFMEMORY             2002
  92. #define IDS_NOHELPFILE              2003
  93.  
  94. #define IDS_ASSERT_FAIL             2200
  95.  
  96. // Notice-related String Identifiers.
  97. #define IDS_NOTIMPLEMENTED          2301
  98. #define IDS_HELLOCOUNTFMT           2302
  99. #define IDS_HELLOTITLE              2303
  100.  
  101. #endif
  102.