Are there any *coherent* resources that describe how it should be done
on Windows? Just init'ing XPCOM alone we have several alternatives
such as NS_InitEmbed, NS_InitXPCOM*, XRE_InitEmbedding, etc. Each of
these says the other methods are deprecated, etc.
The only "official" embedding method seems to be WinEmbed, because it
lives in the trunk. However, starting the program we see that there
are all these "unsupported" words spread all around the corners.
Adam Lock's ActiveX control is good for a quick embedding, but seems
to be seriously outdated and is also not suitable if I want some XPCOM
object iterations.
Any guidance would be much appreciated!
Cheers,
Chris
I have just about completed a project that embedded the 1.9.2 code
within a standard MFC doc/view application. It also supports printing
etc. About the only thing that does not work are carets in edit controls
(no idea why). I am happy to share this code and VS2008 solution with
any one interested.
I planned to write a CodeProject article on embedding Mozilla but have
not had the time to complete - the hope being it would be just such a
coherent resource.
ATB
Jerry
> _______________________________________________
> dev-embedding mailing list
> dev-em...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-embedding
>
>
I am very interested. I tried the "win32_test" project linked against
a few XULRunner builds (1.9.1.8, 1.9.2.6, 1.9.3a2pre), and not only do
I get no carets in text input fields, but I cannot enter text in them
either.
As part of our needs are interactive HTML, rather than just a viewer,
I'm still stuck with CHtmlView, CHtmlDialog etc. in MFC.
Thanks.
The MozMFC project is available from the link below. It contains a
complete VS2008 MFC doc/view Mozilla embedding. The .zip is binary free.
The documentation is just about enough to grok what is happening.
3 things to note:
1. you will need to use the enclosed .mozconfig file to build the
project so we can be sure we are dealing with the same beast :)
2. I have a fixed path to the location of the xul dll and its friends.
In my view 100% acceptable for a embedding proof of concept. I cannot
get xulrunner to register the gre correctly here on Win7 x64 even as
admin ....
3. Ensure the AdditionalIncludeDirectories is set correctly/
e.g.
AdditionalLibraryDirectories="U:\mozilla\mozilla-1.9.2\xul-debug\dist\lib"
If you unzip you should get two folders, one for the project, the other
which contains some of my generic C++ utility classes. Provided your Moz
installation is correct and you've built OK the project should
compile/link/run out of the box (ha!)
Please let me know if you find bugs or make useful, nay even trivial,
changes.
License is BSD.
Good luck
http://www.novadsp.com/get2.aspx?product=mozmfc-20062010.zip&source=moz
<http://www.novadsp.com/get2.aspx?product=mozmfc-20062010.zip&source=moz>
Jerry.
I too am stumped by the win32_test example not accepting text input.
I guess it worked at somepoint because the test page is google.com
and I would assume somebody tested typing into it at somepoint?
The bug appears to have been reported in both gtk and win32 versions
using the NEW_API.
I have tried a variety of xulrunner builds but want to target 1.9.2.
I have applied this patch idea, but it does not work.
https://bugzilla.mozilla.org/show_bug.cgi?id=533245
I have also tried adding the focus->Activate() to the application as
described here
http://groups.google.com/group/mozilla.dev.embedding/browse_thread/thread/6f3984100667cede#
(I have tried setting focus on messages such as WM_MOUSEACTIVATE too)
I have tried to dig a little deeper into the mozilla src and at a
guess the focus->Activate() is not actually doing anything because it
never seems to find a window to act on - but I'm too far out of my
depth to say what should be happening...
I hope somebody can offer some suggestions or experiences with this
issue.
Carey
Carey
I'm interested in your project (and also figuring out embedding gecko
in general, including why the win32_test sln doesn't accept input).
I've been trying to build your VS2008 solution and I'm hitting
errors. Currently, it has issues with the mozmfc.rc2 resource file
(it can't open it and doesn't like that). I'm just getting into a lot
of the Windows development programming concepts, so please forgive any
really stupid questions I may ask. =)
Also, I'm curious if you've tried running with any of the pre-built
xulrunner or xulrunner-sdk builds? Does your project work if you just
target the include & bin folders of the downloaded releases? I can't
understand what the difference would be between the latest builds
online and building it yourself, but that seems to be one difference
between people encountering this text-input / focus bug and (my
understanding of) your project build method.
Thanks!
- Rob
> > dev-embedd...@lists.mozilla.org
> >https://lists.mozilla.org/listinfo/dev-embedding