I've got an XPCOM object which, when linked with gecko sdk 1.7, works
as expected.
I have a function declared in the idl which is defined something like
this:
/* AString getSomeText (); */
NS_IMETHODIMP MyXPCOM::GetSomeText(nsAString & _retval)
{
_retval.Assign(TL("Oh jolly good show, old boy!"));
return NS_OK;
}
the relevent js code is:
var szSomeText = myXPCOMobj.getSomeText();
alert('Text = ' + szSomeText);
As mentioned, this works fine. The text is displayed in the
messagebox as expected.
When I instead link my object with gecko sdk 1.8, the text returned by
this function is *blank*.
I don't get it. A similar function with PRBool result is returned as
expected in 1.8, but strings are always blank.
Any insight would be appreciated.
MyXPCOM is compiled with unicode settings. Both geck bin directories
contain dlls i grabbed from wintools, as every tutorial seems to
specify. Those are the only differences i can think of.
Cheers.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom