I have a specialized browser app based on the MFCIE sample. Using COM
interfaces, I can call JavaScript functions defined in webpages that
are currently displayed in the document/view area. I need to set up
the app so that JavaScript code can call functions defined in the
browser app. Somewhere I read a blurb about setting up the
CDocument-derived object with an automation interface, and then
JavaScript could call functions through "window.external..." But this
always leads to a JavaScript error. I don't even know if I did it
right.
Is there a standard way of adding such an interface to the document
object? Or should the c++ functions be defined elsewhere? Is this
even possible using MFC? If anyone knows of a tutorial or a working
example, I'd appeciate it.
Thanx!