Subj : Hmm, I've gotten the File object to work in JSSHELL, but... To : netscape.public.mozilla.jseng From : ajmayo@my-deja.com (Andrew Mayo) Date : Thu Jan 29 2004 09:55 am After some pain and suffering with MSVC, I've managed to finally compile a version of JSSHELL that supports the File object, and it appears to work. This wasn't entirely painless; the paths in the supplied .DSP files get screwed up somehow in migrating to Visual Studio 6 workspaces, requiring that the fdlib paths be changed, (symptom: you can compile once fine, when you exit and re-enter the project, nothing will compile because the paths are now wrong) and then I found I had to undef LAZY_STANDARD_CLASSES otherwise I kept getting an undefined reference when running the one-line test var x = new File('x.y'); I now have this much working but wanted to use the System and Environment objects that according to README.HTML in the sh subdirectory, are also included. It seems, however, that to get these you have to include jssh.c. Presumably this replaces js.c in the shell project, but attempting to recompile with this results in an undefined reference to js_NewFileObjectFromFILE which of course is a private function inside the js library project. Does anyone know how to get the Environment and System global objects working?. PS: I also discovered the jsdb project, which is based on Seamonkey (http://www.workflowconcepts.com/jsdb/) and this appears to work very well, but I would still have preferred to finally get to grips with JSSHELL. .