Hi Jerry, 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 On Jul 21, 10:51 am, "g...@novadsp.com" <g...@novadsp.com> wrote: > db. > > 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. > > On 21/07/2010 14:55, db wrote: > > > > > On Jun 28, 8:13 am, "g...@novadsp.com"<g...@novadsp.com> wrote: > > >> 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. > > > 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. > > _______________________________________________ > > dev-embedding mailing list > > dev-embedd...@lists.mozilla.org > >https://lists.mozilla.org/listinfo/dev-embedding _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding