brentsimmons
May 8th, 1999, 04:42 AM
I've got a large MDI app written in C, not C++, and I need to host the web browser control.
For various reasons, converting it to C++ and using MFC is out of the question.
However, the app can, and does, load and call methods in DLLs that are written in C++.
In a DLL I can get an hwnd to the window in which I want to display HTML (via FindWindow) -- but actually getting HTML to display in that window, that's where I'm stumped.
(One stumbling block: the web browser control's Create method wants a CWnd, but of course the window is created by my C app, thus there is no CWnd to supply.)
I've looked at every resource I could find about hosting the web browser control, and I haven't seen anything that applies to my seemingly unique situation.
I realize this is a fairly open-ended question, but: does anybody have any ideas? Have you seen any sample code that might do the trick?
Thanks!
For various reasons, converting it to C++ and using MFC is out of the question.
However, the app can, and does, load and call methods in DLLs that are written in C++.
In a DLL I can get an hwnd to the window in which I want to display HTML (via FindWindow) -- but actually getting HTML to display in that window, that's where I'm stumped.
(One stumbling block: the web browser control's Create method wants a CWnd, but of course the window is created by my C app, thus there is no CWnd to supply.)
I've looked at every resource I could find about hosting the web browser control, and I haven't seen anything that applies to my seemingly unique situation.
I realize this is a fairly open-ended question, but: does anybody have any ideas? Have you seen any sample code that might do the trick?
Thanks!