|
-
May 8th, 1999, 04:42 AM
#1
Web Browser Control in C App
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!
-
May 12th, 1999, 05:18 PM
#2
Re: Web Browser Control in C App
if you can only use c-style functions or calls in your application,
why don't you write a .dll that encapsulates the MFC classes needed
to show HTML documents?
You can then access (or call) this HTML view with a c-style function
like:
ShowHTMLDocument ( HWND hWnd, char* cDocumentName )
or anything like that.
Uli
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|