🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by Mehmet Sat, 19 Apr 2003 22:14
ShellExecute - IE
#16893
Author: Mehmet
Date: Sat, 19 Apr 2003 22:14
4 lines
1069 bytes
        When I call an internet address via ShellExecute, address is opening
in opened IE window. How can I open it in a new IE window?

ShellExecute (NULL,"open", "www.av.com", NULL,NULL,SW_RESTORE);
Re: ShellExecute - IE
#16899
Author: nicolasr
Date: Sun, 20 Apr 2003 00:16
34 lines
1751 bytes
Hi,

I used CreateProcess to open a URL in IE and it always opens in a new
window. In case it does not there's a command line switch (-new) which
you could try:

For example:

STARTUPINFO si;
ZeroMemory(&si, sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);

PROCESS_INFORMATION pi;
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));

CreateProcess(NULL,
              "c:\\programme\\internet explorer\\iexplore.exe -new
http://www.av.com",
              NULL,
              NULL,
              FALSE,
              0,
              NULL,
              NULL,
              &si,
              &pi
              );

//close handles opened by CreateProcess
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);

hope this helps,
Nick
Re: ShellExecute - IE
#16914
Author: Mehmet
Date: Sun, 20 Apr 2003 21:26
1 lines
1013 bytes
thanks for all, it is completely my looking for...
Re: ShellExecute - IE
#16827
Author: bcb
Date: Fri, 25 Apr 2003 15:33
19 lines
1486 bytes
Hi,

You can use one of IE's command line parameters, -new to tell it to open in
a new window.

ShellExecute(Handle,"open", "iexplore.exe", "-new www.av.com", NULL,
SW_NORMAL);

Its simple if you don't need all the info returned by CreateProcess.

"Mehmet" <mehmet@hotmail.com> wrote in message
news:3ea1ca4b@newsgroups.borland.com...
>         When I call an internet address via ShellExecute, address is
opening
> in opened IE window. How can I open it in a new IE window?
>
> ShellExecute (NULL,"open", "www.av.com", NULL,NULL,SW_RESTORE);
>
>
Re: ShellExecute - IE
#16740
Author: SHADOW-XIII
Date: Sat, 26 Apr 2003 16:50
25 lines
1697 bytes
I was just looking for it ... THANKS !!

U�ytkownik "bcb" <noemail@sorry.com> napisa� w wiadomo�ci
news:3ea95595@newsgroups.borland.com...
| Hi,
|
| You can use one of IE's command line parameters, -new to tell it to open in
| a new window.
|
| ShellExecute(Handle,"open", "iexplore.exe", "-new www.av.com", NULL,
| SW_NORMAL);
|
| Its simple if you don't need all the info returned by CreateProcess.
|
| "Mehmet" <mehmet@hotmail.com> wrote in message
| news:3ea1ca4b@newsgroups.borland.com...
| >         When I call an internet address via ShellExecute, address is
| opening
| > in opened IE window. How can I open it in a new IE window?
| >
| > ShellExecute (NULL,"open", "www.av.com", NULL,NULL,SW_RESTORE);
| >
| >
|
|
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads