I have implemented the interface already:
NS_METHODIMP ...(...) {
..
..
..
if (bDLLFunction(...)) _retval=PR_TRUE;
else _retval=PR_FALSE;
return NS_OK;
}
The interface itself works, I am just having trouble how to pass the buffer
and bufferlength to the interface...
"David Bradley" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> shadows wrote:
>
> > It is an existing DLL function.
>
>
> I think you are out of luck using it directly if you want to access it
> from JS. The function would need to return a nsresult.
>
> You'll need to create an XPCOM interface/implementation with a method
> that JS can invoke that invokes this DLL function.
>