Hi,

I am trying to modify and compile npsimple.dll XPCOM sample with VC6
and Gecko SDK. I need to convert nsAString into VC6's type _bstr_t
using nsPromiseFlatString function:

NS_IMETHODIMP nsScriptablePeer::StoreString(const nsAString & str)
{
_bstr_tMyString = PromiseFlatString(str);
}

Compiler makes no errors but VC6 linker show these errors:
-------------------------
nsScriptablePeer.obj : error LNK2001: unresolved external symbol
"private: void __thiscall nsPromiseFlatString::Init(class nsAString
const &)" ([EMAIL PROTECTED]@@AAEXABVnsAString@@@Z)

nsScriptablePeer.obj : error LNK2001: unresolved external symbol
"public: static unsigned short const * const nsCharTraits<unsigned
short>::sEmptyBuffer" ([EMAIL PROTECTED]@G@@2PBGB)

nsScriptablePeer.obj : error LNK2001: unresolved external symbol
"public: static void const * const nsObsoleteAString::sCanonicalVTable"
([EMAIL PROTECTED]@@2PBXB)

nsScriptablePeer.obj : error LNK2001: unresolved external symbol
"public: __thiscall nsAString::~nsAString(void)" (??1nsAString@@[EMAIL 
PROTECTED])
-------------------------

Can anyone please help my? It seems like I have to link some .LIB but I
am not able to find .lib required by nsPromiseFlatString.h
sincerely, Eugene Mironichev
http://www.bytescout.com/

_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to