Posted on 2000-03-02
Last Modified: 2013-11-20
I am sing ShellExecute in my application... like this
 And in a single execution of my application i want to open some three or four different URLs in different windows, but by using above statement i am getting new URL in same window...
 So is there any additional feature which i can use..????
 Reply soon
Question by:maharia
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 2576835
UR opening a document not the file itself U have do the following

      ShellExecute(NULL,"open","c:\\Program Files\\Plus!\\Microsoft Internet\\iexplore","","c:\\Program Files\\Plus!\\Microsoft Internet\\",SW_SHOW);
Hope this helps

Author Comment

ID: 2578982
Dear inpras,
  I tried this but i could not able to open 2 sites in different browsers using two ShellExecute(); functions in same code.
   So, if you have any other perfect answer to this then it can help me a lot..

Expert Comment

ID: 2580681
I got the thing to work fine - I'm using NT4.0...

ShellExecute(NULL, "open", "iexplore.exe", "", NULL, SW_SHOW);      

ShellExecute(NULL, "open", "iexplore.exe", "", NULL, SW_SHOW);      

even back-to-back calls to ShellExecute() work... how are you coding yours??

Accepted Solution

inpras earned 30 total points
ID: 2582595
I tried it on NT4 I could able to open two instances using
ShellExecute(NULL,"open","c:\\Program Files\\Plus!\\Microsoft Internet\\iexplore","","c:\\Program Files\\Plus!\\Microsoft Internet\\",SW_SHOW);

ShellExecute(NULL,"open","c:\\Program Files\\Plus!\\Microsoft Internet\\iexplore","","c:\\Program Files\\Plus!\\Microsoft Internet\\",SW_SHOW);

twice will U paste the code before and after initialization part? here..

Author Comment

ID: 2587104
I got answere of that problem..
   Thanx a lot

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java ^ examples 8 70
canBalance challenge 34 104
How do I get Window Title of all opened process? 4 33
Problem to Office 1 40
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question