Hi,

I am writing a XPCOM component, which calls a function, that returns a 
string in _retval parameter

NS_IMETHOD AddCategoryEntry(const char *aCategory, const char *aEntry, const 
char *aValue, PRBool aPersist, PRBool aReplace, char **_retval)

Question: How should I free the returned string. The sample I am looking at 
uses nsXPIDLCString, which is not available in SDK:

nsACString previous;

rv = catman->AddCategoryEntry(, ..... getter_Copies(previous));

Thanks,

   Matra


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to