XPRESRC.RC
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:5k
源码类别:

Windows编程

开发平台:

Visual C++

  1. #include <windows.h>
  2. #ifdef  WIN32
  3. #include <winver.h>
  4. #else
  5. #include <ver.h>
  6. #endif
  7. #define WINDOWS_INCLUDED
  8. #include "xpresrc.h"
  9. #include <pdkver.h>
  10. #include "xpresrc.dlg"
  11. /*
  12.  *  String Table for sample TNEF Transport
  13.  *
  14.  */
  15. STRINGTABLE
  16. {
  17.     /* Error Messages */
  18.         
  19.     IDS_SUCCESS,                    "Success"
  20.     IDS_E_BUSY,                     "The Transport Provider is currently busy"
  21.     IDS_E_CALL_FAILED,              "An unexpected error occured"
  22.     IDS_E_INVALID_PARAMETER,        "Invalid parameter passed to API"
  23.     IDS_E_NO_ACCESS,                "A resource is busy or you lack sufficient permissions"
  24.     IDS_E_NO_SUPPORT,               "Call not supported in this implementation"
  25.     IDS_E_NOT_FOUND,                "Not found"
  26.     IDS_E_UNKNOWN_FLAGS,            "Unknown flags"
  27.     IDS_E_VERSION,                  "Version mismatch"
  28.     IDS_E_NOT_ENOUGH_MEMORY,        "Insufficient memory to complete"
  29.     IDS_W_ERRORS_RETURNED,          "Call succeeded overall, but some errors were returned"
  30.     /* Logon Dilaog Validation Errors */
  31.     
  32.     IDS_NO_DISPLAY_NAME,            "You must supply a Display Name for this Transport."
  33.     IDS_NO_ADDR_TYPE,               "You must specify the Email Type handled by this Transport."
  34.     IDS_NO_EMAIL_ADDRESS,           "You must supply an Email Address for this Transport session."
  35.     IDS_NO_INBOUND_DIR,             "You must specify an Inbound Directory where this Transport will look for new mail."
  36.     IDS_NO_OUTBOUND_DIR,            "You must specify an Outbound Directory for this Transport."
  37.     IDS_BAD_EMAIL_ADDRESS,          "You have entered an invalid UNC path for the Email Address."
  38.     IDS_BAD_INBOUND_DIR,            "You have entered an invalid path for the Inbound Directory."
  39.     IDS_UNC_DIR_MISMATCH,           "The Email Address and Inbound Directory must point to the same place."
  40.     IDS_UNKNOWN_ERROR,              "An unknown error has occured"
  41.     /* XDR Report Text */
  42.         
  43.     IDS_REPORT_TEXT_MSG,            "Failed to create message in directory "
  44.     
  45.     /* Status Table Strings */
  46.     
  47.     IDS_STATUS_OFFLINE,             "Off-Line"
  48.     IDS_STATUS_AVAILABLE,           "Available"
  49.     IDS_STATUS_ONLINE,              "On-Line"
  50.     IDS_STATUS_UPLOADING,           "Uploading messages..."
  51.     IDS_STATUS_DOWNLOADING,         "Downloading messages..."
  52.     IDS_STATUS_INFLUSHING,          "Inbound Flushing..."
  53.     IDS_STATUS_OUTFLUSHING,         "Outbound Flushing..."
  54.     /* Configuration dialog title */
  55.     IDS_CONFIG_TITLE,               "Configure Sample TNEF Transport"
  56.     IDS_BAD_LOGON_PROPS_TITLE,      "Transport Logon Props Error"
  57.     IDS_BAD_LOGON_PROPS_FORMAT,     "%srnrnWould you like the opportunity to correct your mistake?"
  58. }
  59. #ifdef DEBUG                    
  60. #   define VER_FILEFLAGS                VS_FF_DEBUG | VS_FF_PRERELEASE
  61. #else
  62. #   define VER_FILEFLAGS                VS_FF_PRERELEASE
  63. #endif
  64.     
  65. #if (rmm < 10)
  66. #define rmmpad "0"
  67. #else
  68. #define rmmpad
  69. #endif
  70. #if defined(DEBUG) || defined(TEST)
  71. #define SzVer(a,b,c)                #a ".00." rmmpad #b "." #c
  72. #else
  73. #define SzVer(a,b,c)                #a ".0"
  74. #endif
  75. #define VERSTR(a,b,c)               SzVer(a,b,c)
  76. #define VER_FILEVERSION_STR         VERSTR(rmj, rmm, rup) ""
  77. #define VER_PRODUCTVERSION_STR          VERSTR(rmj, rmm, rup) ""
  78. /* Windows 95 definitions are currently the same as NT, but may change */
  79. #if defined(WIN95)
  80. #   define VER_FILE_OS                  VOS_NT_WINDOWS32
  81. #   define VER_INTERNALNAME_STR         "SMPXP32"
  82. #   define VER_ORIGINALFILENAME_STR     "SMPXP32.DLL"
  83. #elif defined(WIN32)
  84. #   define VER_FILE_OS                  VOS_NT_WINDOWS32
  85. #   define VER_INTERNALNAME_STR         "SMPXP32"
  86. #   define VER_ORIGINALFILENAME_STR     "SMPXP32.DLL"
  87. #elif defined(WIN16)
  88. #   define VER_FILE_OS                  VOS__WINDOWS16
  89. #   define VER_INTERNALNAME_STR         "SMPXP"
  90. #   define VER_ORIGINALFILENAME_STR     "SMPXP.DLL"
  91. #endif
  92.      
  93. /*
  94.  *  Version Stamp
  95.  *
  96.  */
  97. VS_VERSION_INFO VERSIONINFO
  98.     FILEVERSION             rmj,0,rmm,rup
  99.     PRODUCTVERSION          rmj,0,rmm,rup
  100.     FILEFLAGSMASK           0x3FL               /* This should not be changed */
  101.     FILEFLAGS               VER_FILEFLAGS
  102.     FILEOS                  VER_FILE_OS
  103.     FILETYPE                VFT_DLL             /* Look at the list of VFT_* values */
  104.     FILESUBTYPE             VFT2_UNKNOWN        /* Look at the list of VFT2_* values */
  105.     {
  106.         BLOCK "StringFileInfo"
  107.         {
  108.             BLOCK "040904E4" /* US English, Windows 3.10 ANSI */
  109.             {
  110.                 VALUE "ProductName",        "Microsoft Messaging API for Windows(TM)"
  111.                 VALUE "Comments",           "Sample Transport Service Provider"
  112.                 VALUE "CompanyName",        "Microsoft Corporation"
  113.                 VALUE "FileDescription",    "Sample Transport Service Provider"
  114.                 VALUE "LegalCopyright",     "Copyright 251 Microsoft Corp. 1992-1995"
  115.                 VALUE "InternalName",       VER_INTERNALNAME_STR
  116.                 VALUE "OriginalFilename",   VER_ORIGINALFILENAME_STR
  117.                 VALUE "ProductVersion",     VER_PRODUCTVERSION_STR
  118.                 VALUE "FileVersion",        VER_FILEVERSION_STR
  119.             }
  120.         }
  121.         BLOCK "VarFileInfo"
  122.         {
  123.             VALUE "Translation", 0x0409, 0x04E4
  124.         }
  125.     }