Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


ShellExecuteEx or anything that work

Posted on 1999-06-25
Medium Priority
Last Modified: 2013-11-20
I want to open a URL by a default browser and need to open the second URL in a new window not replace the old URL in the previous window, please include a sample code and I need this urgent

Question by:TriTran
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
  • 3

Author Comment

ID: 1308048
Edited text of question.

Author Comment

ID: 1308049
Adjusted points to 100
LVL 23

Accepted Solution

chensu earned 300 total points
ID: 1308050
Download the source code of Windows Developer's Journal August 1997 issue ( Extract the in the zip file. You'll get the gotourl.c. The code you want is the code to be executed if ShellExecute fails in the GotoURL function. The idea is to get the full path name of the default browser from the registry. Then use WinExec to run it with the URL. In Win32, it is recommended to use CreateProcess instead of WinExec.

Author Comment

ID: 1308051
sorry I forget about your answer

Expert Comment

ID: 12124181
is the link still valid? could you explain more?

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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 will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : All lightning effects with instructions : http://www.mediaf…
Suggested Courses

721 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