Snicka
asked on
Problems with Microsoft Web Browser Control
I am developing an Active-X control that has a Web Browser control embedded in it. It fails whenever I try to create the web browser control. I have even spawned a dialog box with a webbrowser control in it but it will not create either. Are there any special considerations when using the Web Control in an Active-X control. I have used the Web Control in other applications successfully.
How do you do it? How does it fail? ...
ASKER
If I build a dialog in the resource editor and then create it as a modeless dialog box from within the activex control. The dialog box fails on the .Create() call and just never gets displayed. If I just try to put a webbrowser control in my activex control it fails on the .Create() of the webbrowser but it actually gives me an assertion error. I can give you more detail tomorrow.
Just a thought here.
Have you initialized COM?
This must be in InitInstance or somewhere in the startup code.
CoInitialize( NULL );
Have you initialized COM?
This must be in InitInstance or somewhere in the startup code.
CoInitialize( NULL );
ASKER
That doesn't help. I have never had to initialize COM functionality when using this control though I just tried it and nothing still.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
bah... I have never had to call this function before when using this control.. But It worked. Thanks