How to add a new class as an input parameter in a idl file

[email protected]
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <[email protected]>
Hi,

How can I add a new class as an input parameter in a idl file:
For example, I add this in a idl file

 void setMyClass(in MyClass myclass);

When I compile it, I get the following error:

../../../../dist/bin/xpidl -m header -w -I/home/firefox/mozilla/
embedding/c.omponents/windowwatcher/public -I../../../../dist/idl -o
_xpidlgen/nsIPromptService /home/firefox/mozilla/embedding/components/
windowwatcher/public/nsIPromptService.idl
/home/firefox/mozilla/embedding/components/windowwatcher/public/
nsIPromptService.idl:383: 'MyClass' undeclared identifier

Can you please tell me how can I 'define' MyClass in idl file?

Thank you
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.