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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ShellExecute(…) ?

Status
Not open for further replies.

d00ape

Programmer
Apr 2, 2003
171
0
0
SE
How can I open a new window with for e.g. as a url.

Following code:

ShellExecute(NULL, "open", “ValidUrl/abc.html”, NULL, NULL, SW_SHOWNORMAL);

Opens a new explorer window if none already is open. Otherwise it uses an already open one, which I want to prevent.


APe
 
ShellExecute(0,"open","iexplore","ValidUrl/abc.html",0,SW_SHOWNORMAL);

/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
CreateProcess(NULL, “ValidUrl/abc.html”, ....other parameters...);

Ion Filipski
1c.bmp
 
HINSTANCE hReturn;
hReturn = ShellExecute( HWND_DESKTOP, "open", "IEXPLORE.EXE", " "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE", SW_SHOWNORMAL );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top