I try to build winembed from mozilla 1.7.13.
I create a MFC Appwizard / Single document (Document/view architecture
support)/including a container/(Docking toolbar ,initial status bar,
printing and print preview , 3D controls)/MFC standard , MFC library
shared dll)
Then :
- I replace all the sources by the mfcembed .cpp
- I set C/C++ Preprocessor definitions to
WIN32,_DEBUG,_WINDOWS,_AFXDLL,_MBCS,XPCOM_GLUE,USE_SINGLE_SIGN_ON,DEBUG,DEBUG_philippe,TRACING,X_DISPLAY_MISSING,HAVE_SNPRINTF,_WIN32,XP_WIN,XP_WIN32,HW_THREADS,STDC_HEADERS,WIN32_LEAN_AND_MEAN,NO_X11,_X86_,D_INO=d_ino,MOZ_DEFAULT_TOOLKIT=\"windows\",MOZ_APP_NAME=\"mozilla\",OJI,IBMBIDI,MOZ_VIEW_SOURCE,ACCESSIBILITY,MOZ_XPINSTALL,MOZ_JSLOADER,MOZ_MATHML,NS_DISABLE_LOGGING,MOZ_XUL,MOZ_PROFILESHARING,MOZ_PROFILELOCKING,MOZ_DLL_SUFFIX=\".dll\",JS_THREADSAFE,NS_PRINT_PREVIEW,NS_PRINTING,MOZILLA_LOCALE_VERSION=\"1.7\",MOZILLA_REGION_VERSION=\"1.7\",_MOZILLA_CONFIG_H_,MOZILLA_CLIENT
-I set C/C++ include directories to the directories dclared into the
makefile (mozilla\dist\include\....
-I set the link/Object/libraies module to embed_base_s.lib
profdirserviceprovider_s.lib unicharutil_s.lib xpcomglue.lib
string_s.lib nspr4.lib plc4.lib plds4.lib kernel32.lib user32.lib
gdi32.lib winmm.lib wsock32.lib advapi32.lib ole32.lib comdlg32.lib
shell32.lib version.lib
-I set link/input additional library path mozilla\dist\lib
All is build OK , I get just a few warnings.
The mfcembed.exe is linked into the mozilla directory.
I start the mfcembed.exe in debug mode.
All works ok until I go to CBrowserFrame* pFrame = bIsEditor ? (
new CEditorFrame(chromeMask) ) :
( new CBrowserFrame(chromeMask) );
in CMfcEmbedApp::CreateNewBrowserFrame.
I crash in unhandled exception (NTDLL.dll) 0xc00000005 Access violation
when I enter into
CBrowserFrame::CBrowserFrame(PRUint32 chromeMask){
}
I dont know where is the problem. Is my project definition wrong.
Did I forget something.
Could you help me. I'm lost
thank's
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding