Link to home
Start Free TrialLog in
Avatar of maharia
maharia

asked on

shellexecute

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
Avatar of inpras
inpras

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
Avatar of maharia

ASKER

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..
 
I got the thing to work fine - I'm using NT4.0...

ShellExecute(NULL, "open", "iexplore.exe", "https://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??
ASKER CERTIFIED SOLUTION
Avatar of inpras
inpras

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maharia

ASKER

I got answere of that problem..
   Thanx a lot
   Maharia