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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
gvgCommented:
Just a thought here.

Have you initialized COM?

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

CoInitialize( NULL );
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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
chensuCommented:
Have you called AfxEnableControlContainer in your application object's InitInstance function.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SnickaAuthor Commented:
bah... I have never had to call this function before when using this control.. But It worked. Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.