hi,
If you have made an xpcom component , then why are you trying to allocate it using new ? Should you not be using the CID (CLSID) instead?
I don't think ProfileStruct has a CID.
If you are trying to use your class *in* an xpcom object, then I guess all you have missed is a #include.
This is what I'm doing. I did include nsProfileAccess.h in which the ProfileStruct class was declared.
I suspect ProfileStruct is not reusable by other components than the profile manager?
hth gangadhar none wrote:
I built my own xpcom component and wanted to reuse the class ProfileStruct defined in nsProfileAccess.h.
For example:
ProfileStruct* profileItem = new ProfileStruct();
// using profileItem... //
I got an error about undefined reference to `ProfileStruct::ProfileStruct[in-charge]()' during compilation.
How can I fix this?
Thanks, Adele
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
