Sean Moore wrote:
9knjgj$[EMAIL PROTECTED]">
Thanks for your reply Ed and that put me on the right track but
I also had to define XP_WIN32

Now I am down to figuring out how much of this I can cut out
to have just a basic basic basic browser.

Sean

"Ed Welch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Sean Moore wrote:

I am trying to build the mfcembed example pulled out of the tree.
I am also trying to build in the VC environment.

All of the code compiles but I get link errors listed below.
Any suggestions??

Thanks,
Sean


xpcom.lib(xpcom.dll) : error LNK2005: "public: virtual __thiscall
nsAString::~nsAString(void)" (??1nsAString@@UAE@XZ) already defined in
BrowserView.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: void __thiscall
nsDependentString::Rebind(unsigned short const *,unsigned int)"
(?Rebind@nsDependentString@@QAEXPBGI@Z) already defined in MfcEmbed.obj
xpcom.lib(xpcom.dll) : error LNK2005: "public: __thiscall
nsAFlatString::nsAFlatString(void)" (??0nsAFlatString@@QAE@XZ) already
defined in ProfileMgr.obj


If you are trying to make a .dsp file for mfcembed (as apposed to using
an external makefile), then you need to include XP_WIN in Preprocessor
definitions



Also another thing I found, is if your project needs to include afxctl.h , you will have to include it after all the mozilla includes, because there are some constants defined there that have the same name as ones in Mozilla.



Reply via email to