Solved

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

Posted on 2001-06-29
5
673 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now