
adding WebBrowser Control to child window
I have managed to open up a window and would like to add the webbrowser
control to it.
I am trying to do this with AtlAxCreateControl.
The parameters I am passing it are,
AtlAxCreateControl(" http://www.*-*-*.com/ ", m_myWnd, NULL, NULL);
now i have to cast the url like this.
LPSTR s = " http://www.*-*-*.com/ ";
LPCOLESTR ss = reinterpret_cast<LPCOLESTR>(ss);
then i can say,
AtlAxCreateControl(ss, m_myWnd, NULL, NULL);
when i do this, I click a button on my app to open the window. the
window opens and then another window with the MSN Search Fail page is
opened up. I cannot figure out why this is. I have not found anything
in the documentation that can help me.
Any help is appreciated.
Sent via Deja.com http://www.*-*-*.com/
Before you buy.