home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / flatfile.ab / sampabp.rc < prev    next >
Encoding:
Text File  |  1996-04-11  |  4.9 KB  |  167 lines

  1. /***********************************************************************
  2.  *
  3.  *  SAMPABP.RC
  4.  *
  5.  *  Resource definitions for Sample Address Book Provider
  6.  *
  7.  *  Copyright 1992-1995 Microsoft Corporation.  All Rights Reserved.
  8.  *
  9.  ***********************************************************************/
  10.  
  11.  
  12. #include <windows.h>
  13. #ifdef  WIN32
  14. #include <winver.h>
  15. #else
  16. #include <ver.h>
  17. #endif
  18.  
  19. #define WINDOWS_INCLUDED
  20.  
  21. #include <pdkver.h>
  22.  
  23. #include "sampabp.rh"
  24.  
  25. #include "sampabp.dlg"
  26.  
  27. #ifdef DEBUG                    
  28. #   define VER_FILEFLAGS                VS_FF_DEBUG | VS_FF_PRERELEASE
  29. #else
  30. #   define VER_FILEFLAGS                VS_FF_PRERELEASE
  31. #endif
  32.     
  33. #if (rmm < 10)
  34. #define rmmpad "0"
  35. #else
  36. #define rmmpad
  37. #endif
  38.  
  39. #if defined(DEBUG) || defined(TEST)
  40. #define SzVer(a,b,c)                #a ".00." rmmpad #b "." #c
  41. #else
  42. #define SzVer(a,b,c)                #a ".0"
  43. #endif
  44. #define VERSTR(a,b,c)               SzVer(a,b,c)
  45.  
  46. #define VER_FILEVERSION_STR         VERSTR(rmj, rmm, rup) "\0"
  47. #define VER_PRODUCTVERSION_STR          VERSTR(rmj, rmm, rup) "\0"
  48.  
  49. /* Windows 95 definitions are currently the same as NT, but may change */
  50.  
  51. #if defined(_WIN95)
  52. #   define VER_FILE_OS                  VOS_NT_WINDOWS32
  53. #   define VER_INTERNALNAME_STR         "SMPAB32\0"
  54. #   define VER_ORIGINALFILENAME_STR     "SMPAB32.DLL\0"
  55. #elif defined(WIN32)
  56. #   define VER_FILE_OS                  VOS_NT_WINDOWS32
  57. #   define VER_INTERNALNAME_STR         "SMPAB32\0"
  58. #   define VER_ORIGINALFILENAME_STR     "SMPAB32.DLL\0"
  59. #elif defined(WIN16)
  60. #   define VER_FILE_OS                  VOS__WINDOWS16
  61. #   define VER_INTERNALNAME_STR         "SMPAB\0"
  62. #   define VER_ORIGINALFILENAME_STR     "SMPAB.DLL\0"
  63. #endif
  64.  
  65. /*
  66.  *  Version Stamp
  67.  */
  68.  
  69. VS_VERSION_INFO VERSIONINFO
  70.     FILEVERSION             rmj,0,rmm,rup
  71.     PRODUCTVERSION          rmj,0,rmm,rup
  72.     FILEFLAGSMASK           0x3FL               /* This should not be changed */
  73.     FILEFLAGS               VER_FILEFLAGS
  74.     FILEOS                  VER_FILE_OS
  75.     FILETYPE                VFT_DLL             /* Look at the list of VFT_* values */
  76.     FILESUBTYPE             VFT2_UNKNOWN        /* Look at the list of VFT2_* values */
  77.     {
  78.         BLOCK "StringFileInfo"
  79.         {
  80.             BLOCK "040904E4" /* US English, Windows 3.10 ANSI */
  81.             {
  82.                 VALUE "ProductName",        "Microsoft Messaging API for Windows(TM)\0"
  83.                 VALUE "Comments",           "Sample Address Book Service Provider\0"
  84.                 VALUE "CompanyName",        "Microsoft Corporation\0"
  85.                 VALUE "FileDescription",    "Sample Address Book Service Provider\0"
  86.                 VALUE "LegalCopyright",     "Copyright \251 Microsoft Corp. 1992-1995\0"
  87.                 VALUE "InternalName",       VER_INTERNALNAME_STR
  88.                 VALUE "OriginalFilename",   VER_ORIGINALFILENAME_STR
  89.                 VALUE "ProductVersion",     VER_PRODUCTVERSION_STR
  90.                 VALUE "FileVersion",        VER_FILEVERSION_STR
  91.             }
  92.         }
  93.  
  94.         BLOCK "VarFileInfo"
  95.         {
  96.             VALUE "Translation", 0x0409, 0x04E4
  97.         }
  98.     }
  99.  
  100.  
  101. /*
  102.  *  String table for the Sample Address Book
  103.  */
  104. STRINGTABLE DISCARDABLE
  105. BEGIN
  106.  
  107.     ;
  108.     ;  Format for email address (\\server\share) part 1
  109.     ;
  110.     IDS_FMT_SERVER_SHARE                "\\\\%s\\%s"
  111.  
  112.     ;
  113.     ;  Format for email address (...\path...) part 2
  114.     ;
  115.     IDS_FMT_PATH_ON_SHARE               "%s\\%s"
  116.  
  117.     ;
  118.     ;  Format for SAB directory display name
  119.     ;
  120.     IDS_FMT_DIR_DN                      "SAB using %s"
  121.  
  122.     ;
  123.     ;  Name of root container object
  124.     ;
  125.     IDS_ROOT_NAME                       "Sample Address Book Root Container"
  126.  
  127.     ;
  128.     ;  Format for rows in details listboxes (PR_DISPLAY_NAME_A)
  129.     ;
  130.     IDS_FMT_DET_DN                      "Listbox Item  %d"
  131.  
  132.     ;
  133.     ;  Format for rows in details listboxes (PR_COMMENT_A)
  134.     ;
  135.     IDS_FMT_DET_COMMENT                 "Comment %d"
  136.  
  137.     ;
  138.     ;  Format for rows in drop down listbox in details (PR_DISPLAY_NAME_A)
  139.     ;
  140.     IDS_FMT_DD_DN                       "Drop Down Listbox item %d"
  141.  
  142.     ;
  143.     ;  Format for rows in a combo box in details (PR_DISPLAY_NAME_A)
  144.     ;
  145.     IDS_FMT_COMBO_DN                    "ComboBox item %d"
  146.  
  147.  
  148.     ;;
  149.     ;;- Error strings
  150.     ;;
  151.  
  152.     ;  Errors from OpenEntry
  153.     IDS_OLD_EID                     "Old entryids are not supported"
  154.  
  155.     ;  From opening the contents table
  156.     IDS_CANT_OPEN_SAB               "Unable to create contents table.  Unable to open .SAB file."
  157.  
  158.     ;  Opening the .SAB file
  159.     IDS_CANT_OPEN_SAB_FILE          "Unable to open .SAB file."
  160.  
  161.     IDS_SAB_FILE_ATTRIB             "Unable to get info about .SAB file."
  162.     IDS_SAB_TOO_LARGE               ".SAB file is too large."
  163.     IDS_SAB_CORRUPT                 ".SAB is corrupt.  Partial record detected in file."
  164.     IDS_SAB_NO_READ                 "Error reading .SAB file."
  165.  
  166. END
  167.