[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-atl
Subject: Re: How to launch Web browser from VC++ program
From: "Hagel, Andrew R. (RETG)" <Andrew.Hagel () RETG ! COM>
Date: 1999-04-29 14:12:57
[Download RAW message or body]
Hi Vasu:
Alternately, you might consider something like
#import "shdocvw.dll" no_namespace // you may need some excludes here
...
_bstr_t spURL("http://www.delphiauto.com");
IWebBrowser2Ptr spWB( __uuidof(InternetExplorer) );
spWB->ToolBar = true;
spWB->StatusBar = true;
spWB->Visible = true;
spWB->Navigate( spURL );
Regards,
Andy
-----Original Message-----
From: Vasu Y. [mailto:vasu@CGS.CGSMITH.SOFT.NET]
Sent: Thursday, April 29, 1999 1:57 AM
To: ATL@DISCUSS.MICROSOFT.COM
Subject: Re: How to launch Web browser from VC++ program
I tried the following piece of code from CodeGuru. It worked fine.
ShellExecute(NULL, "open", "http://www.delphiauto.com", NULL, NULL,
SW_SHOWNORMAL);
Thanks everybody for your replies.
vasu
-----Original Message-----
From: Tisson,Mathew K (IE10) [SMTP:TissonMK@MEGHADOOT.HISO.HONEYWELL.COM]
Sent: Thursday, April 29, 1999 11:17 AM
To: ATL@DISCUSS.MICROSOFT.COM
Subject: Re: How to launch Web browser from VC++ program
void CAboutDlg::OnButton2()
{
// TODO: Add your control notification handler code here
WinExec("c:\\program files\\plus!\\Microsoft Internet\\iexplore.exe
www.hiso.honeywell.com",SW_SHOWMAXIMIZED);
}
Thanks & Regards
Tisson.
=====================================================
Tisson K Mathew,
Software Engineer,
Honeywell India Software Operation Pvt Ltd,
Opp. IIMB,
Bannergatta Road,
Bangalore - 560076.
E-Mail : tissonmk@hiso.honeywell.com
Tel : ++91-80-6647751 - 55 , 347 4156 ( Res )
Fax: ++91-80-6647750
> -----Original Message-----
> From: Vasu Y. [SMTP:vasu@CGS.CGSMITH.SOFT.NET]
> Sent: Thursday, April 29, 1999 11:02 AM
> To: ATL@DISCUSS.MICROSOFT.COM
> Subject: How to launch Web browser from VC++ program
>
> Hi All,
> I want to launch the Web browser and go to a pre-determined web site when
> I click a menu item from my VC++ 6.0 Application.
>
> Thanks in advance,
> Vasu
>
> ----------------------------------------------------------------
> Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> contains important info including how to unsubscribe. Save time, search
> the archives at http://discuss.microsoft.com/archives/index.html
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe. Save time, search
the archives at http://discuss.microsoft.com/archives/index.html
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe. Save time, search
the archives at http://discuss.microsoft.com/archives/index.html
----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe. Save time, search
the archives at http://discuss.microsoft.com/archives/index.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic