Is there a problem with using NS_NewNativeLocalFile with xpcomglue?
The xpcom glue library needs to be initalized before you can call any of those functions. Are you calling GRE_Startup()?
Also take a look at http://www.mozilla.org/projects/embedding/GRE.html#mozTocId226780
P.S. -- I found that I had to link to both nspr4_s.lib and nspr4.lib in order to get my DLL to compile, thus making it dependent on nspr4.dll. Is this to be expected? I was hoping to not have to be dependent on any DLLs outside the GRE (which I don't know the location of in advance), but it's not vital. However, if there is a way to remove the dependency on nspr4.dll, that would really be swell. Are there any other issues perhaps related to the libraries I'm linking with?
Not yet. There are some libraries outside of the GRE set. For now, NSPR is one of them. See this bug:
http://bugzilla.mozilla.org/show_bug.cgi?id=191049
Regards, Doug Turner
