short bMainThread :: Start() { Editor ed; int lp; if (argc > 1) { File *f; for (lp=1 ; lp < argc ; lp++) { f = new File(argv[lp]); if (!f->Exists()) { char buf[300]; sprintf(buf, "File %s does not exist", argv[lp]); wMessageBox mb(&ed, buf, "Error", MbIconExclamation | MbOk); } else new Document(&ed, argv[lp]); delete f; } ed.TileDocuments(); } Exec(); return 0; }