How do I make a label a link to a webpage?? (Borland C++ Builder)

Posted on 2001-06-29
Last Modified: 2006-11-17
How do I make a label a link to a webpage?? (in Borland C++ Builder)
Question by:Fearum
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

Expert Comment

ID: 6237695
ShellExecute(handle, "open", "", NULL, NULL, SW_SHOWNORMAL);

Expert Comment

ID: 6237703
Oops, I meant:

ShellExecute(handle, "open",, NULL, NULL, SW_SHOWNORMAL);

Expert Comment

ID: 6237708
ShellExecute(handle, "open", , NULL, NULL, SW_SHOWNORMAL);

Perhaps I got it right this time.
LVL 32

Expert Comment

ID: 6237765
See the 2nd question at:

Here, there is a CStaticLink class described that enhances the MFC CStatic control to do what I think you want to do.  It seem you are using Borland and their "label" control which I think is about the same as CStatic.  I'm sure the code will need to be a bit different but the concept should be similar.

Accepted Solution

cyprus106 earned 50 total points
ID: 6241223
try this->

ShellExecute( this->Handle, "open", URLLabel->Caption.c_str( ), NULL, NULL, SW_SHOW );

just in case the other 2 didnt make sense. and try   on ther tips and tricks section they have a page about web links and labels.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Grammars for C C++ and java 1 145
How do I save this device context as a .bmp or a picture of some kind? 2 79
Issues with C++ Class 19 120
C++ statement T∗ begin(Vector<T>& x) 5 43
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

734 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