Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28632 Discussions

How do I make a hyperlink inside my application?

hbell
Beginner
642 Views
I would like to embed a hyperlink inside my CVF Fortan Windows application that links to a target on a prescribed Internet URL. The idea is to have a dialog button that when clicked would open up the user's browser (usually MS Internet Explorer) then open up the URL that I prescribed.

I suppose I could use the approach used in the CVF supplied sample program, FXPLORER, (that is, using SHDOCVW.DLL). But perhaps there is a simpler way to do this.

Harry Bell
0 Kudos
2 Replies
Steven_L_Intel1
Employee
642 Views
See my article on ShellExecute. It will open a URL in the user's default browser and is easy to use. Just have a call to this be the action when the button is clicked.

Steve
0 Kudos
hbell
Beginner
642 Views
I just put your code into a callback function that my button responds to and it worked fine. Thanks Steve!

Harry Bell
0 Kudos
Reply