home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 39 / IOPROG_39.ISO / SOFT / sdkjava40.exe / data1.cab / fg_Samples / Samples / Native / JView / JView.rc < prev    next >
Encoding:
Text File  |  2000-05-04  |  6.1 KB  |  159 lines

  1. #include "resource.h"
  2. #include <winnt.h>
  3. #include "jview.rcv"
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. // TEXTINCLUDE
  8. //
  9.  
  10. 1 TEXTINCLUDE DISCARDABLE
  11. BEGIN
  12.     "resource.h\0"
  13. END
  14.  
  15. 2 TEXTINCLUDE DISCARDABLE
  16. BEGIN
  17.     "#include <winnt.h>\r\n"
  18.     "#include ""jview.rcv""\0"
  19. END
  20.  
  21. 3 TEXTINCLUDE DISCARDABLE
  22. BEGIN
  23.     "\r\n"
  24.     "\0"
  25. END
  26.  
  27. /////////////////////////////////////////////////////////////////////////////
  28. //
  29. // Icon
  30. //
  31. // Separate icons for JView and WJview.  Appletviewer uses the JView icon.
  32. //
  33.  
  34. #ifdef NO_CONSOLE
  35. IDI_QUICKAPP            ICON    DISCARDABLE     "wjview.ico"
  36. #else
  37. IDI_QUICKAPP            ICON    DISCARDABLE     "jview.ico"
  38. #endif
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41. //
  42. // String Table
  43. //
  44.  
  45. STRINGTABLE DISCARDABLE
  46. BEGIN
  47.     IDS_OUTOFMEMORY         "Out of memory"
  48.     IDS_SCODE               "SCODE 0x%lx: Error message unavailable."
  49.     IDS_ERROR               "\nERROR: "
  50.     IDS_COULDNOTINITOLE     "Could not initialize Ole"
  51.     IDS_JAVAVM              "Could not locate Java Virtual Machine"
  52.     IDS_CLASSLOADER         "Could not obtain Java class loader"
  53.     IDS_NOPATHGIVEN         "No path given for %s switch"
  54.     IDS_INVALIDSWITCH       "Invalid command line switch: %s"
  55.     IDS_INVALIDPARAMETER    "Invalid parameter assignment: %s"
  56.     IDS_NOCLASSGIVEN        "No class file given"
  57.     IDS_UNKNOWNERROR        "Unknown error!"
  58.     IDS_EXECUTINGCLASS      "Could not execute %s"
  59.     IDS_PRESSANYKEY         "\nPress any key to continue..."
  60.     IDS_WJVIEW_TITLE_ERROR  "WJView Error"
  61.     IDS_WJVIEW_TITLE_HELP   "WJView Help"
  62.     IDS_NONAMESPACEGIVEN    "No namespace given for %s switch"
  63. END
  64.  
  65. STRINGTABLE DISCARDABLE
  66. BEGIN
  67.     IDS_MEMBERNOTFOUND      "Member not found.\r\n"
  68.     IDS_NOMAIN              "%s must have a method of the following form to be run using JView:\n\n\tpublic static void main(String args[])\n\nIf %s is an applet, you must specify the '/a' option or run it using a browser.\n"
  69.     IDS_NOJAVATHREAD        "Couldn't create thread."
  70.     IDS_PROPSNOTSUPPORTED   "The current version of the Java VM does not support custom system properties."
  71.     IDS_VERSION             VERSION
  72. END
  73.  
  74.  
  75. // AppletViewer system properties
  76.  
  77. STRINGTABLE DISCARDABLE
  78. BEGIN
  79.     IDS_WARN_NOAPPLETATTRS            "warning: applet tag with no attributes in %1"
  80.     IDS_WARN_NOPARAMATTRS             "warning: param tag with no attributes in %1"
  81.     IDS_WARN_INVALIDPARAM             "warning: missing name or value in applet parameter in %1"
  82.     IDS_WARN_NOCODE                   "warning: ignoring applet with no code in %1"
  83.     IDS_WARN_PARSEERROR               "warning: could not parse HTML in %1: %2"
  84.     IDS_WARN_NOAPPLETTAGS             "warning: HTML document %1 does not contain any applets"
  85.     IDS_WARN_URLNOTFOUND              "warning: could not open url %1"
  86.     IDS_WARN_FILENOTFOUND             "warning: could not open file or class %1"
  87.  
  88.     IDS_ERROR_NOAPPLETS               "No applets found or specified."
  89.     IDS_ERROR_UNEXPECTED              "Unexpected error:"
  90.  
  91.     IDS_APPLETVIEWER_USAGE            "usage: appletviewer [param=value ...] appletname  . . ."
  92.     IDS_APPLETVIEWER_TITLE            "Microsoft Applet Viewer"
  93.     IDS_APPLETVIEWER_LOADING          "(loading)"
  94.     IDS_APPLETVIEWER_HTMLTITLE        "HTML Source"
  95.     IDS_APPLETVIEWER_INFOTITLE        "Applet Info"
  96.     IDS_APPLETVIEWER_NOINFO           "(none)"
  97.  
  98.     IDS_MENU_APPLET                   "Applet"
  99.     IDS_MENU_RELOAD                   "Reload"
  100.     IDS_MENU_RESTART                  "Restart"
  101.     IDS_MENU_STOP                     "Stop"
  102.     IDS_MENU_START                    "Start"
  103.     IDS_MENU_HTML                     "HTML Source..."
  104.     IDS_MENU_INFO                     "Applet Info..."
  105.     IDS_MENU_CONSOLE                  "Show Console"
  106.     IDS_MENU_SECRELOAD                "Reload Security Settings"
  107.     IDS_MENU_QUIT                     "Quit"
  108. END
  109.  
  110.  
  111. #ifndef APPLETVIEWER
  112.  
  113. STRINGTABLE DISCARDABLE
  114. BEGIN
  115.  
  116. #ifdef NO_CONSOLE
  117.     IDS_USAGE1              "\nUsage: WJView [options] <classname> [arguments]\n\n"
  118. #else
  119.     IDS_USAGE1              "\nUsage: JView [options] <classname> [arguments]\n\n"
  120. #endif
  121.     IDS_USAGE2              "Options:\n"
  122.     IDS_USAGE3              "    /?                 displays usage text\n"
  123.     IDS_USAGE4              "    /cp <classpath>    set class path\n"
  124.     IDS_USAGE5              "    /cp:p <path>       prepend path to class path\n"
  125.     IDS_USAGE6              "    /cp:a <path>       append path to class path\n"
  126.     IDS_USAGE7              "    /n <namespace>     namespace in which to run\n"
  127.     IDS_USAGE8              "    /p                 pauses before terminating if an error occurs\n"
  128.     IDS_USAGE9              "    /v                 verify all classes\n"
  129.     IDS_USAGE10             "    /d:<name>=<value>  define system property\n"
  130.     IDS_USAGE11             "    /a                 execute AppletViewer\n"
  131.     IDS_USAGE12             "    /vst               print verbose stack traces (requires debug classes)\n"
  132. #ifdef PROFILER_HOOK
  133.     IDS_USAGE13             "    /prof[:options]    enable profiling\n"
  134. #endif
  135.     IDS_USAGE14             "\nClassname:\n    .CLASS file to be executed.\n\n"
  136.     IDS_USAGE15             "Arguments:\n    command-line arguments to be passed on to the class file\n"
  137. // The '~' indicates the last resource string.
  138.     IDS_USAGELAST           "~"
  139.     IDS_BANNER1             "Microsoft (R) Command-line Loader for Java  Version %1u.%02u.%04u\n"
  140.     IDS_BANNER2             "Copyright (C) Microsoft Corp 1996-%04u. All rights reserved.\n"
  141. END
  142.  
  143. #ifdef PROFILER_HOOK
  144.  
  145. STRINGTABLE DISCARDABLE
  146. BEGIN
  147.  
  148.     IDS_COULDNOTINITPROF    "Could not initialize the profiler.\n"
  149.     IDS_COULDNOTLOADPROF    "Could not locate a profiler.\n"
  150.     IDS_BADPROFPARAMS       "The profiling parameters are incorrect.\n"
  151.     IDS_NOPROFPARAMS        "The profiler does not accept parameters.\n"
  152.     IDS_COULDNOTREGPROF     "Could not enable profiling.\n"
  153.     IDS_WJVIEW_PROFTITLE    "WJView Profiler"
  154.  
  155. END
  156.  
  157. #endif // PROFILER_HOOK
  158.  
  159. #endif // !APPLETVIEWER