The reason I had the rv as the third arg was because file nsIInputStream.h has the following for the prototype of Read(). (It says that it returns the number of bytes read. And I assumed the _retval arg was for an exit status.):
Yeah, IDL-defined interfaces map better to javascript than to C++. When using C++ from XPCOM, no exceptions are thrown, the return value is used instead; and the IDL-defined return value is passed via an out parameter.
nsIInputStream.h is generated from nsIInputStream.idl. _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib