Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
4.3 KiB

  1. /***************************************************************************/
  2. /** Microsoft Windows **/
  3. /** Copyright(c) Microsoft Corp., 1991, 1992 **/
  4. /***************************************************************************/
  5. #include <windows.h>
  6. #include <afxres.h>
  7. #include "resource.h"
  8. #include "hearts.rcv"
  9. #include "hearts.dlg"
  10. AFX_IDI_STD_FRAME ICON HEARTS.ICO
  11. #if 1
  12. SND_BREAK WAVE glass.wav
  13. SND_QUEEN WAVE timpani.wav
  14. #endif
  15. #if 0
  16. SND_QUOTE WAVE quote2.wav
  17. #endif
  18. HeartsMenu MENU
  19. BEGIN
  20. POPUP "&Game"
  21. BEGIN
  22. // MENUITEM "&New Game\tF2", IDM_NEWGAME
  23. // MENUITEM SEPARATOR
  24. MENUITEM "&Options...\tF7" IDM_OPTIONS
  25. MENUITEM "&Sound\tF8", IDM_SOUND
  26. MENUITEM "S&core...\tF9", IDM_SCORE
  27. MENUITEM SEPARATOR
  28. MENUITEM "E&xit", IDM_EXIT
  29. END
  30. POPUP "&Help"
  31. BEGIN
  32. MENUITEM "&Help Topics", IDM_HELP
  33. // MENUITEM "&Search for Help on...", IDM_SEARCH
  34. // MENUITEM "&How to Use Help", IDM_HELPONHELP
  35. MENUITEM SEPARATOR
  36. MENUITEM "&Quote...", IDM_QUOTE
  37. MENUITEM "&About Hearts", IDM_ABOUT
  38. END
  39. END
  40. HeartsAccel ACCELERATORS
  41. BEGIN
  42. VK_F1, IDM_HELP, VIRTKEY
  43. VK_F1, IDM_HELP, VIRTKEY, SHIFT
  44. VK_ESCAPE, IDM_BOSSKEY, VIRTKEY
  45. // VK_F2, IDM_NEWGAME, VIRTKEY
  46. VK_F7, IDM_OPTIONS, VIRTKEY
  47. VK_F8, IDM_SOUND, VIRTKEY
  48. VK_F9, IDM_SCORE, VIRTKEY
  49. VK_F12, IDM_CHEAT, VIRTKEY, CONTROL, SHIFT, ALT
  50. END
  51. STRINGTABLE
  52. BEGIN
  53. IDS_MEMORY "Out of memory. Close some other applications and try again."
  54. IDS_APPNAME "The Microsoft Hearts Network"
  55. IDS_CONNECTING "Trying to connect with dealer..."
  56. IDS_P1NAME "Pauline"
  57. IDS_P2NAME "Michele"
  58. IDS_P3NAME "Ben"
  59. IDS_INTRO "Welcome to the Microsoft Hearts Network."
  60. IDS_SELECT "Select three cards to pass to %s."
  61. IDS_PASSWAIT "Waiting for other players to pass..."
  62. IDS_WAIT "Waiting for %s to move..."
  63. IDS_GO "Select a card to play."
  64. IDS_ACCEPT "Press OK to accept cards."
  65. IDS_OK "OK"
  66. IDS_BADMOVE "You must follow suit. Play a %s."
  67. IDS_LEADHEARTS "Hearts has not been broken. Choose another suit."
  68. IDS_LEAD2C "You must lead the two of clubs."
  69. IDS_SCORE "Score"
  70. IDS_SCORESHEET "Score Sheet"
  71. IDS_PLACE1 "First Place"
  72. IDS_PLACE2 "Second Place"
  73. IDS_PLACE3 "Third Place"
  74. IDS_PLACE4 "Last Place"
  75. IDS_DISCONNECT "The dealer has left the game.\nHearts will end."
  76. IDS_NOSERVER "Unable to connect with dealer.\nHearts will end."
  77. IDS_SERVERFAIL "Unable to establish DDE server.\nHearts will end."
  78. IDS_CARDSDLL "Cannot find cards.dll.\nHearts will end."
  79. IDS_VERSION "This version of Hearts is incompatible with the Dealer's version. Hearts will end."
  80. IDS_PWAIT "Waiting for dealer to start game..."
  81. IDS_GMWAIT "Waiting for others to join... Press F2 to begin with current players."
  82. IDS_BUSY "Sorry, game is already in progress."
  83. IDS_TIMEOUT "Network timeout error.\r\nHearts will end."
  84. IDS_UNKNOWNERR "Network communication error.\r\nHearts will end."
  85. IDS_GAMEOVER "Game Over"
  86. IDS_GAMEOVERWIN "Game Over -- You Win"
  87. IDS_NETWORK "Hearts Network"
  88. IDS_NOTREADY "The dealer is not ready, or the game is already in progress."
  89. IDS_AGAIN "Do you want to play again?"
  90. IDS_BADBLOOD "You cannot play a point card on the first trick. Select again."
  91. IDS_SUIT0 "club"
  92. IDS_SUIT1 "diamond"
  93. IDS_SUIT2 "heart"
  94. IDS_SUIT3 "spade"
  95. IDS_PASSLEFT "Pass Left"
  96. IDS_PASSRIGHT "Pass Right"
  97. IDS_PASSACROSS "Pass Across"
  98. IDS_UNKNOWN "Unknown"
  99. IDS_DEALER "Dealer"
  100. IDS_CREDITS "I come not, friends, to steal away your hearts...\n\n\tJulius Caesar, Act III, Scene ii"
  101. IDS_FONTFACE "Tahoma"
  102. IDS_CHARSET "0"
  103. IDS_FONTSIZE "13"
  104. IDS_STARTMENUNAME "Hearts"
  105. IDS_INFOTIP "Begins the Hearts card game."
  106. END