Can you please provide with the libraries that you are trying to link your component against. Are you linking against xpcomglue.lib ?
--Gangadhar
QI wrote:
The tested code is below:
nsCOMPtr<nsILocalFile> abMgr; rv = compMgr->CreateInstanceByContractID("@mozilla.org/file/local;1", nsnull,NS_GET_IID(nsILocalFile),(void**)&abMgr); if (NS_FAILED(rv)) return rv;
rv = abMgr->InitWithNativePath(nsDependentCString("c:\\y.txt"));
if (NS_FAILED(rv)) return rv;
abMgr->Launch();
link error:unresolved exernal symbol: "__declspec(dllimport) public: virtual __thiscall nsDependentCString::~nsDependentCString(void)"
I touch XPCOM just now and wish to get your promts.Thanks!
QI.
_______________________________________________ Mozilla-xpcom mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-xpcom
