Using IWebBrowser in plain C

I am trying to utilize the Microsoft Web Browser ActiveX control in a plain C Win32 application. I added this control to a dialog in the VC++ 5 resource editor and threw in some calls to CoInitialize(NULL) and OleInitialize(NULL) for good luck. Whenever I try to load this dialog, it receives only the WM_DESTROY message and is not successfully opened. I'm guessing that I'm missing some obvious call to an initialization function or something to that effect. Could someone please run down the necessary steps to get an IWebBrowser control working in a dialog for a plain C application? Thanks.
Who is Participating?
chensuConnect With a Mentor Commented:
That's not trivial. You need to make that dialog box an ActiveX container. A lot of work. See

ActiveX Control and Control Container Guidelines

Makings of an OCX container
What's a 'Plain C' application  ??

Do you mean to say that you have created a windows application written in 'C' instead of 'C++'.

How are you creating the Dialog in the code ??

Does the Dialog appear at all ??

PsionAuthor Commented:
PinTail: I mean that it is C and not C++, yes.  It had several dialogs that were all working fine before I tried to add the ActiveX.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.