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.
SnickaAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
Have you called AfxEnableControlContainer in your application object's InitInstance function.
0
 
chensuCommented:
How do you do it? How does it fail? ...
0
 
SnickaAuthor Commented:
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.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
gvgCommented:
Just a thought here.

Have you initialized COM?

This must be in InitInstance or somewhere in the startup code.

CoInitialize( NULL );
0
 
SnickaAuthor Commented:
That doesn't help.  I have never had to initialize COM functionality when using this control though I just tried it and nothing still.
0
 
SnickaAuthor Commented:
bah... I have never had to call this function before when using this control.. But It worked. Thanks
0
All Courses

From novice to tech pro — start learning today.