System.err.println("Usage: xwt [-s] [-v] [-l <port>/<url>] source-location [initial-template]");
System.err.println("");
System.err.println("Options:");
- System.err.println(" -v verbose logging");
+ System.err.println(" -v verbose logging (required for logging on Win32)");
System.err.println(" -s [not yet supported]");
System.err.println(" -l [not yet supported]");
System.err.println("");
0xFF, 0xFF, 0xFF, 0xFF
};
+void org::xwt::plat::Win32::natPreInit() {
+ if (org::xwt::util::Log::verbose) {
+ AllocConsole();
+ freopen("CONOUT$", "w+t", stderr);
+ }
+}
void org::xwt::plat::Win32::natInit() {