Now I know how overriding components works in MFCEmbed ( I still don't know what mean that NS_PROMPTSERVICE_CID ).
A CID is a Class ID, i.e. an ID that identifies a specific class. Your implementation of the prompt service should get its own CID (generate one with uuidgen or guidgen)
But I think it is not that what I need.
I need to do come communication between dialogs, and my browser. But use dialogs as separate .dll will do this much harder.
There is no need for a separate DLL, and I have no idea why MFCEmbed does that...
Is there way to override dialog, not by separate dll containing overriden dialog handlers, but to write those handlers directly in my code to allow that functions to access global variables used in my browser?
Yes there is. See, for example:
http://lxr.mozilla.org/seamonkey/source/embedding/browser/gtk/src/EmbedPrivate.cpp#1012
(with http://lxr.mozilla.org/seamonkey/source/embedding/browser/gtk/src/EmbedPrivate.cpp#127)
This specific code was written for linux, but should work on windows as well.
Or see http://lxr.mozilla.org/seamonkey/source/js/src/liveconnect/nsCLiveconnectFactory.cpp#93
(This way means you need to implement nsIFactory yourself)
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding
