?
Solved

shellexecute

Posted on 2000-03-02
5
Medium Priority
?
1,273 Views
Last Modified: 2013-11-20
I am sing ShellExecute in my application... like this
 ShellExecute(NULL,"open","www.something.com",NULL,NULL,SW_NORMAL);
 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
0
Comment
Question by:maharia
[X]
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
5 Comments
 
LVL 4

Expert Comment

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

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

Author Comment

by:maharia
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..
 
0
 
LVL 4

Expert Comment

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

ShellExecute(NULL, "open", "iexplore.exe", "www.experts-exchange.com", NULL, SW_SHOW);      


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


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

Accepted Solution

by:
inpras earned 60 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","www.nothing.com","c:\\Program Files\\Plus!\\Microsoft Internet\\",SW_SHOW);

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

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

Author Comment

by:maharia
ID: 2587104
I got answere of that problem..
   Thanx a lot
   Maharia
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 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