Solved

shellexecute

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

Independent Software Vendors: 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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

732 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