Using IWebBrowser in plain C
Posted on 1999-07-22
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.