Solved

shellexecute

Posted on 2000-03-02
5
1,264 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
  • 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 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","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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Adapt this command to show who installed 29 102
Get filename and folder into excel 7 67
isEverywhere  challenge 19 64
ShiftLeft challenge 21 66
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…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

19 Experts available now in Live!

Get 1:1 Help Now