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

Reply via email to