WebLock.cpp(88) : error C2065: 'kSupportsCStringCID' : undeclared
identifier
Question 1) Is there a mechanism that details the history of obsoleted
code, and possibly what it was obsoleted by? It would be helpful to
find out what happened to kSupportsCStringCID. I have looked through
every repository exposed by LXR, and found nothing.
You have a misunderstanding here... kSupportsCStringCID was not obsoleted.
But it also never existed in Mozilla. You need a line like this near the to of your source file:
static NS_DEFINE_CID(kSupportsCStringCID, NS_SUPPORTS_CSTRING_CID);
nsCOMPtr<nsISupportsString> stringSupports;
mCompMgr->CreateInstance(NS_SUPPORTS_STRING_CID, nsnull, NS_GET_IID(nsISupportsString), getter_AddRefs(stringSupports));
..results with this compile error:
WebLock.cpp(88) : error C2660: 'CreateInstance' : function does not take 0 parameters
Yes... don't do that :) you need NS_DEFINE_CID.
Question 2) Why does using NS_SUPPORTS_STRING_CID generate this error? Have I constructed this call incorrectly?
see above...
Creating library Debug/WebLock.lib and object Debug/WebLock.exp embedstring.lib(nsDependentSubstring.obj) : fatal error LNK1103: debugging information corrupt; recompile module Error executing link.exe.
Hm... wild guess: Are you trying to build a debug DLL, linking to to a release xpcom? I don't know if that would give you this kind of error, but I suppose it's worth checking.
And now I'm trying to dig up what Visual Studio means by this, although I suspect I've mixed string types incorrectly. The project is configured to generate a DLL, so why it wants to build an EXE is interesting.
That above output showed creation of a DLL, not an executable...
nsCOMPtr<nsISupportsString> \ stringSupports(do_CreateInstance(NS_SUPPORTS_STRING_CONTRACTID));
..results with this compile error:
error C2065: 'do_CreateInstance' : undeclared identifier
#include "nsComponentManagerUtils.h" _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
