I am attempting to embed Gecko for an HTML based report view in our application. I downloaded the nightly SDK from ftp://ftp.mozilla.org/pub/mozilla/nightly/latest-trunk/gecko-sdk-win32.zip and attempted to call NS_InitEmbedding() from my application. After adding a plethora of include and library paths and adding every .lib in the tree to my link it appears to at least compile and link, but I have some questions on whether what I have done is correct.
All I want is an HTML render that would allow for application callbacks via javascript in the HTML - if the user clicks a link in the window I'd like it to be able to do something in my application. I had define MOZILLA_STRICT_API in my app or it would try and include nsDirectoryServiceUtils.h, which appears to not be included in the SDK I downloaded. I also had to link to the following libs - xpcom.lib nspr4_s.lib embedstring_s.lib embed_base_s.lib. Am I going about this the right way? I assume the _s.libs are static - should I be using the dynamic versions? Any reason why there isn't a static version of xpcom.lib? Thanks- John Dunn Peak Audio, a division of Cirrus Logic, Inc.
