about ShellExecute method

i know that ShellExecute method opens a browser in an existing browser. But can a ShellExecute method open in a new browser window. Can it execute in a  new browser window?

  hRet = ::ShellExecute( NULL , "Open" , HttpPath ,
            NULL , NULL , SW_SHOW);
        if ((int)hRet <= 32) {
            // &#65396;&#65431;&#65392;&#20966;&#29702;&#12364;&#24517;&#35201;&#12394;&#12425;&#12371;&#12371;&#12408;
            bOpenFlg = FALSE;
        }
        if ( bOpenFlg == FALSE ) {
            hRet = ::ShellExecute( NULL , NULL , "iexplore.exe" ,
                HttpPath , NULL , SW_SHOW );
            if ((int)hRet <= 32) {
                // &#65396;&#65431;&#65392;&#20966;&#29702;&#12364;&#24517;&#35201;&#12394;&#12425;&#12371;&#12371;&#12408;
                bOpenFlg = FALSE;
            }
        }

the code above executes an application and open it in a iexplorer browser but when you already have an open iexplorer browser it overlaps it and it doesnt open in a new window. is there any way how can i open a new window? thanx for the help in advance. If ShellExecute cant do it can you suggest other functions.
LVL 1
haroldxiousAsked:
Who is Participating?
 
NawalKishore1976Commented:
There is one more option CreateProcess to launch the application with full control. Check it
0
 
SkonenCommented:
That's handled internally by Internet Explorer, you can see the option in Internet Options->Advanced->Browsing->Reuse windows for launching shortcuts.  IE may access the registry to determine the setting every time shortcut is launched (but very doubtful), in which case you can change the registry setting before and after using ShellExecute.
0
 
NawalKishore1976Commented:
Use
System ("C:\Program Files\Internet Explorer\iexplore.exe" urlPath);

The same effect you can get from ShellExecute also.

Try this with command (dos)window. everytime it will launch a new instance of IE
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

 
Jaime OlivaresSoftware ArchitectCommented:
Try with WinExec()
0
 
haroldxiousAuthor Commented:
i cant understand the shell execute method can you help me in that method?
0
 
haroldxiousAuthor Commented:
hello follow up with this function using sellexecute i cant open a window on an existing browser. for example: http://www.geocities.com/haroldxious/ visit the site for picture.  my application opens the Unformation server plus browser then i open a google and a yahoo. when i click on my application exe file again i want that if there is an existing Information server plus browser it will load on that existing browser and not open a new one or overlap the yahoo. i want that it will overlap the existing information server plus browser. how will i do that. hope you can help me in my problem. thx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.