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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 62
List out all word 7 261
sum28 challenge 31 107
Is there a simple front-end menu system. 9 72
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now