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


Urgent: Open a URL

Posted on 1999-06-22
Medium Priority
Last Modified: 2013-11-20
Please give me a detail answer how to open a URL by the default browser
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
  • 2

Accepted Solution

shaig earned 400 total points
ID: 1307561

ShellExecute( NULL, _T("open"), "", NULL, NULL, SW_SHOWNA );

Mail to:

ShellExecute( NULL, "open", "", NULL, NULL, SW_SHOW);

Author Comment

ID: 1307562
Can you provide some more help ? I still need to know if the operation is success or not ! Like if the computer doesnt have a web brower ! Is there any feed back with ShellExecute or have to use CreateProcess ?

Expert Comment

ID: 1307563
You can use ShellExecuteEx.

"...To obtain information about the application that is launched as a result of calling ShellExecute, use ShellExecuteEx."

You will need to fill a SHELLEXECUTEINFO structure.

The documantation is very complete, it explains both functions in detail. focus on the return values.


Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

722 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