Hello, All,

I have an extension that needs to receive information from the underlying 
component, namely a string

On XPIDL   , I defined a function like this

void ObtainUser(out string str_user_name);



And the xpidl compiler generates a member prototype like this 

NS_IMETHODIMP CObserver::ObtainUser(char **str_user_name);



Now my question is how I call this function to get the string in javascript

I've tried to call the function with one arguments, but I get an exception like 
this :

Erro: uncaught exception: [Exception... "'Out' argument must be an object arg 0 
[nsIFoxPanel.ObtainUser]"  nsresult: "0x80570002 
(NS_ERROR_XPC_NEED_OUT_OBJECT)"  location: "JS frame :: 
chrome://extensao/content/foxpanel.js :: <TOP_LEVEL> :: line 34"  data: no]



I've tried to call it with no arguments, but I get an exception as well



Any help deeply appreciated



Cheers,

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

Reply via email to