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 / freclien / freclien.rc < prev    next >
Encoding:
Text File  |  1997-08-05  |  4.3 KB  |  135 lines

  1. //===========================================================================
  2. //  File:      FRECLIEN.RC
  3. //
  4. //  Summary:   Resource definition file for FRECLIEN.EXE.
  5. //
  6. //  Origin:    4-7-96: atrent - Editor-inheritance from the DLLCLIEN source.
  7. //
  8. // -------------------------------------------------------------------------
  9. //  This file is part of the Microsoft COM Tutorial Code Samples.
  10. //
  11. //  Copyright (C) Microsoft Corporation, 1997.  All rights reserved.
  12. //
  13. //  This source code is intended only as a supplement to Microsoft
  14. //  Development Tools and/or on-line documentation.  See these other
  15. //  materials for detailed information regarding Microsoft code samples.
  16. //
  17. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  18. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  19. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  20. //  PARTICULAR PURPOSE.
  21. //===========================================================================
  22.  
  23. // We include ole2.h because we're defining the Version Info.
  24. // We include FRECLIEN.H for Resource IDs unique to FRECLIEN.EXE.
  25. #include <ole2.h>
  26. #include "freclien.h"
  27.  
  28.  
  29. // The main keyboard accelerator resource table.
  30. AppAccel ACCELERATORS MOVEABLE PURE
  31. BEGIN
  32.   VK_F1,          IDM_HELP_CONTENTS,      VIRTKEY
  33.   "?",            IDM_HELP_CONTENTS,      ASCII
  34. END
  35.  
  36.  
  37. // The About Box dialog resource.
  38. IDM_HELP_ABOUT DIALOG DISCARDABLE  67, 46, 196, 53
  39. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  40. CAPTION "About FRECLIEN"
  41. FONT 8, "MS Shell Dlg"
  42. BEGIN
  43.   ICON            "AppIcon",-1,6,7,18,20
  44.   LTEXT           "Tutorial Code Sample: FRECLIEN Version 1.0",-1,32,7,
  45.                     155,8,NOT WS_GROUP
  46.   LTEXT           "Copyright 1997 Microsoft Corporation",-1,32,18,155,
  47.                     8,NOT WS_GROUP
  48.   PUSHBUTTON      "OK",IDOK,75,32,40,14
  49. END
  50.  
  51.  
  52. // The main icon resource for the application.
  53. AppIcon ICON DISCARDABLE "freclien.ico"
  54.  
  55.  
  56. // The main menu resource definition.
  57. FRECLIENMENU MENU DISCARDABLE
  58. BEGIN
  59.   POPUP "&File"
  60.   BEGIN
  61.     MENUITEM "E&xit",                   IDM_FILE_EXIT
  62.   END
  63.   POPUP "&Help"
  64.   BEGIN
  65. //  MENUITEM "&Help Topics",            IDM_HELP_CONTENTS
  66.     MENUITEM "FRECLIEN &Tutorial",      IDM_HELP_TUTORIAL
  67.     MENUITEM "FRE&SERVE Tutorial",      IDM_HELP_TUTSERVER
  68.     MENUITEM "Read Source &File...",    IDM_HELP_READSOURCE
  69.     MENUITEM SEPARATOR
  70.     MENUITEM "&About FRECLIEN...",      IDM_HELP_ABOUT
  71.   END
  72. END
  73.  
  74.  
  75. // Error Box String Resources.
  76. STRINGTABLE DISCARDABLE
  77. BEGIN
  78.   IDS_COMINITFAILED       "FRECLIEN: COM initialization failed."
  79.   IDS_APPINITFAILED       "FRECLIEN: App initialization failed."
  80.   IDS_OUTOFMEMORY         "FRECLIEN: Ran out of memory."
  81.   IDS_NOUNICODE           "FRECLIEN: Can't run with Unicode."
  82.   IDS_NODCOM              "FRECLIEN: Can't run without DCOM."
  83.   IDS_NOSERVER            "FRECLIEN: Server not registered."
  84.   IDS_ASSERT_FAIL         "FRECLIEN: Assertion Failed."
  85. END
  86.  
  87.  
  88. // If being read in by AppStudio we don't confuse it with this Version Info.
  89. #ifndef APSTUDIO_INVOKED
  90.  
  91. // The version information for the binary.
  92. VS_VERSION_INFO VERSIONINFO
  93. FILEVERSION    1,0,0,0
  94. PRODUCTVERSION 1,0,0,0
  95. FILEFLAGSMASK  VS_FFI_FILEFLAGSMASK
  96. #ifndef DEBUG
  97.   FILEFLAGS    0
  98. #else
  99.   FILEFLAGS    VS_FF_DEBUG | VS_FF_PRERELEASE
  100. #endif
  101. FILEOS         VOS_NT_WINDOWS32
  102. FILETYPE       VFT_APP
  103. FILESUBTYPE    VFT2_UNKNOWN
  104. BEGIN
  105.   BLOCK "StringFileInfo"
  106.   BEGIN
  107.     #ifdef UNICODE
  108.       BLOCK "040904B0" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=Unicode
  109.     #else
  110.       BLOCK "040904E4" // LANG_ENGLISH/SUBLANG_ENGLISH_US, CharSet=MultiLang
  111.     #endif
  112.     BEGIN
  113.       VALUE "CompanyName",     "Microsoft Corporation"
  114.       VALUE "FileDescription", "FRECLIEN: Tutorial Code Sample"
  115.       VALUE "FileVersion",     "1.00"
  116.       VALUE "InternalName",    "FRECLIEN"
  117.       VALUE "LegalCopyright",  "Copyright \251 1997 Microsoft Corp. "
  118.       VALUE "OriginalFilename","FRECLIEN.EXE"
  119.       VALUE "ProductName",     "Microsoft\256 Tutorial Code Samples"
  120.       VALUE "ProductVersion",  "1.00"
  121.     END
  122.   END
  123.  
  124.   BLOCK "VarFileInfo"
  125.   BEGIN
  126.     #ifdef UNICODE
  127.       VALUE "Translation", 0x409, 1200  //English (0x409), Unicode (1200)
  128.     #else
  129.       VALUE "Translation", 0x409, 1252  //English (0x409), ANSI (1252)
  130.     #endif
  131.   END
  132. END
  133.  
  134. #endif
  135.