Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I open an non local webpage in IE from VC++ program?

Status
Not open for further replies.

Insider1984

Technical User
Feb 15, 2002
132
0
0
US
subject says it all. I know how to open one when it's on a local directory but how do I open IE and send them to an address? =====================
Insider
4 year 'on the fly' programmer
C++ Basic Java
 
unfortunately I tried just pasting that in without luck.. It doesn't compile so maybe there a error in the code.

2nd I don't really understand what the code does... So I can't begin to debug it.


To open a file (html) locally I use:

ShellExecute( 0, "open", outfile, NULL, outfile, 0 );

Where outfile is the location my file is sitting at.

Thanks again for your help.
=====================
Insider
4 year 'on the fly' programmer
C++ Basic Java
 
yah.... maybe I should have tried my code using nothing more than my old code with the new varible =-)

this worked

ShellExecute( 0, "open", URL, NULL, URL, 0 );

where URL is the location of the current URL =====================
Insider
4 year 'on the fly' programmer
C++ Basic Java
 
Another qn, in similar lines,

I want to open the webpage in ie in a clien system from the server... any possibility?

thanks
Shanaaz
 
You can use COM. The IE IDispatch interface has the method Navigate2. Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top