After doing the above code in Ubuntu 8.04, i thought i will try to
compile it in Windows, as wxWidgets is cross-platform...:-)
I made these changes to the above code:

=====================================================

1.rv = XPCOMGlueStartup("/home/raravi/xulrunner-sdk/bin/libxpcom.so");
   to
   rv = XPCOMGlueStartup("H:/Programming/xulrunner-1.9/dist-win/bin/
xpcom.dll");

2.rv = NS_NewNativeLocalFile(nsEmbedCString("/home/raravi/xulrunner-
sdk/bin"), PR_FALSE,getter_AddRefs(libxul));
   to
  rv = NS_NewNativeLocalFile( nsEmbedCString("H:/Programming/
xulrunner-1.9/dist-win/bin"), PR_FALSE,getter_AddRefs(libxul));

3.rv = NS_NewNativeLocalFile(nsEmbedCString("/home/raravi/
NetBeansProjects/wxXULTest/dist/Debug/GNU-Linux-x86"),PR_FALSE,
getter_AddRefs(appDir));
   to
  rv = NS_NewNativeLocalFile( nsEmbedCString("D:/Documents and
Settings/rArAvi/My Documents/Visual Studio 2005/Projects/wxXULTest/
wxXULTest"), PR_FALSE, getter_AddRefs(appDir));

4. rv = baseWindow->InitWindow(this->m_wxwindow, 0, 0, 0, 300, 400);
   to
   rv = baseWindow->InitWindow(this->GetHWND(), 0, 0, 0, 300, 400);

======================================================

I use the XP_WIN compiler flag.
And also /Zc:wchar_t-   (Treat wchar_t as built-in type : No)

I use xpcomglue.lib only.

And also /NODEFAULTLIB:MSVCRT

But wxWidgets libraries need MSVCRT and i get lots of (more then 2000
actually) Unresolved External Symbol errors.

If i dont use /NODEFAULTLIB:MSVCRT, i get the followin error,

========================================================

MSVCRT.lib(crtexe.obj) : error LNK2001: unresolved external
symbol_main

=========================================================

How to solve this situation??

My application needs both wxWidgets and Mozilla. wxWidgets needs
MSVCRT but Mozilla does not.

Ps. I even compiled wxWidgets libs with /NODEFAULTLIB:MSVCRT, but it
doesnot change anything.

I use Visual Studio 2005 Express Edition on Windows 32bit XP with SP2.
wxWidgets is also compiled with /Zc:wchar_t- option.

Please help...

-Amith Raravi
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to