Solved

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

Posted on 2001-06-29
5
684 Views
Last Modified: 2006-11-17
How do I make a label a link to a webpage?? (in Borland C++ Builder)
0
Comment
Question by:Fearum
[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
  • 3
5 Comments
 
LVL 4

Expert Comment

by:IainHere
ID: 6237695
ShellExecute(handle, "open", "http://www.experts-exchange.com", NULL, NULL, SW_SHOWNORMAL);
0
 
LVL 4

Expert Comment

by:IainHere
ID: 6237703
Oops, I meant:

ShellExecute(handle, "open", http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20141167, NULL, NULL, SW_SHOWNORMAL);
0
 
LVL 4

Expert Comment

by:IainHere
ID: 6237708
ShellExecute(handle, "open", http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20141167 , NULL, NULL, SW_SHOWNORMAL);

Perhaps I got it right this time.
0
 
LVL 32

Expert Comment

by:jhance
ID: 6237765
See the 2nd question at:

http://www.microsoft.com/msj/defaultframe.asp?page=/msj/1297/c++1297.htm&nav=/msj/1297/newnav.htm

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.
0
 

Accepted Solution

by:
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    www.bytamin-c.com   on ther tips and tricks section they have a page about web links and labels.
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

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…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 learn how to clear a vector as well as how to detect empty vectors in C++.

635 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