home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / tutsamp / dcdserve / dcdserve.rc < prev    next >
Encoding:
Text File  |  1997-08-30  |  3.9 KB  |  120 lines

  1. //===========================================================================
  2. //  File:      DCDSERVE.RC
  3. //
  4. //  Summary:   Resource definition file for DCDSERVE.DLL.
  5. //
  6. //  Origin:    8-23-97: atrent - Editor-inheritance from LOCSERVE source.
  7. //               [Revised]
  8. //
  9. // -------------------------------------------------------------------------
  10. //  This file is part of the Microsoft COM Tutorial Code Samples.
  11. //
  12. //  Copyright (C) Microsoft Corporation, 1997.  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. // We include ole2.h because we're defining the Version Info.
  25. // We inlcude apputil.h for Resource IDs shared with APPUTIL.
  26. // We include server.h for Resource IDs unique to DCDSERVE.DLL.
  27. #include <ole2.h>
  28. #include <apputil.h>
  29. #include "dcdserve.h"
  30.  
  31. // The main icon resource for the application.
  32. AppIcon ICON DISCARDABLE "dcdserve.ico"
  33.  
  34. // The About Box dialog resource.
  35. IDM_HELP_ABOUT DIALOG DISCARDABLE  67, 46, 196, 53
  36. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  37. CAPTION "About DCDSERVE"
  38. FONT 8, "MS Shell Dlg"
  39. BEGIN
  40.   ICON            "AppIcon",-1,6,7,18,20
  41.   LTEXT           "Tutorial Code Sample: DCDSERVE Version 1.0",-1,32,7,
  42.                     155,8,NOT WS_GROUP
  43.   LTEXT           "Copyright 1997 Microsoft Corporation",-1,32,18,155,
  44.                     8,NOT WS_GROUP
  45.   PUSHBUTTON      "OK",IDOK,75,32,40,14
  46. END
  47.  
  48. // The main menu resource definition.
  49. DCDSERVEMENU MENU DISCARDABLE
  50. BEGIN
  51.   POPUP "&File"
  52.   BEGIN
  53.     MENUITEM "E&xit",                   IDM_FILE_EXIT
  54.   END
  55.   POPUP "&Help"
  56.   BEGIN
  57.     MENUITEM "&About DCDSERVE...",      IDM_HELP_ABOUT
  58.   END
  59. END
  60.  
  61. // Error Box String Resources.
  62. STRINGTABLE DISCARDABLE
  63. BEGIN
  64.   IDS_COMINITFAILED       "DCDSERVE: COM initialization failed."
  65.   IDS_APPINITFAILED       "DCDSERVE: Can't initialize or run stand alone."
  66.   IDS_OUTOFMEMORY         "DCDSERVE: Ran out of memory."
  67.   IDS_NOUNICODE           "DCDSERVE: Can't run with Unicode."
  68.   IDS_ASSERT_FAIL         "DCDSERVE: Assertion Failed."
  69. END
  70.  
  71.  
  72. // If being read in by AppStudio we don't confuse it with this Version Info.
  73. #ifndef APSTUDIO_INVOKED
  74.  
  75. // The version information for the binary.
  76. VS_VERSION_INFO VERSIONINFO
  77. FILEVERSION    1,0,0,0
  78. PRODUCTVERSION 1,0,0,0
  79. FILEFLAGSMASK  VS_FFI_FILEFLAGSMASK
  80. #ifndef DEBUG
  81.   FILEFLAGS    0
  82. #else
  83.   FILEFLAGS    VS_FF_DEBUG | VS_FF_PRERELEASE
  84. #endif
  85. FILEOS         VOS_NT_WINDOWS32
  86. FILETYPE       VFT_APP
  87. FILESUBTYPE    VFT2_UNKNOWN
  88. BEGIN
  89.   BLOCK "StringFileInfo"
  90.   BEGIN
  91.     #ifdef UNICODE
  92.       BLOCK "040904B0" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=Unicode
  93.     #else
  94.       BLOCK "040904E4" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=MultiLang
  95.     #endif
  96.     BEGIN
  97.       VALUE "CompanyName",     "Microsoft Corporation"
  98.       VALUE "FileDescription", "DCDSERVE: Tutorial Code Sample"
  99.       VALUE "FileVersion",     "1.00"
  100.       VALUE "InternalName",    "DCDSERVE"
  101.       VALUE "LegalCopyright",  "Copyright \251 1997 Microsoft Corp. "
  102.       VALUE "OriginalFilename","DCDSERVE.DLL"
  103.       VALUE "ProductName",     "Microsoft\256 Tutorial Code Samples"
  104.       VALUE "ProductVersion",  "1.00"
  105.       VALUE "OLESelfRegister", "\0"
  106.     END
  107.   END
  108.  
  109.   BLOCK "VarFileInfo"
  110.   BEGIN
  111.     #ifdef UNICODE
  112.       VALUE "Translation", 0x409, 1200  //English (0x409), Unicode (1200)
  113.     #else
  114.       VALUE "Translation", 0x409, 1252  //English (0x409), ANSI (1252)
  115.     #endif
  116.   END
  117. END
  118.  
  119. #endif
  120.