metalfish
asked on
XPCOM function returns nsAString
Can someone provide me an example to XPCOM function which has a return value as nsAString?
Thanks,
MF
Thanks,
MF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad to help.
>> By the way, do you know how to convert .NET String to nsAString? Any example will be helpful.
Without extensive research I cannot give you complete code to do this. However, you can get a char* from a System.String (I assume that is what you mean when you say .NET string) by following the extensive advice here http://support.microsoft.c om/kb/3112 59. And according to https://developer.mozilla. org/en/XPC OM_string_ guide, you can use nsDependentString to convert char* to nsAString(https://developer.mozilla .org/en/XP COM_string _guide#Raw _Character _Pointers).
HTH :o)
>> By the way, do you know how to convert .NET String to nsAString? Any example will be helpful.
Without extensive research I cannot give you complete code to do this. However, you can get a char* from a System.String (I assume that is what you mean when you say .NET string) by following the extensive advice here http://support.microsoft.c
HTH :o)
ASKER
I will look into that. Thanks again for the help
ASKER
By the way, do you know how to convert .NET String to nsAString? Any example will be helpful.
MF