Solved

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

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
FMX enumerated colours 2 133
Dynamically allocate memory 9 70
I could not build boost code, 10 107
Gaming Software 1 29
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

749 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