LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I insert a www hyperlink in a CVI panel?

I know you can use DDE to control Internet Explorer, but is there a way to have a text string execute a normal hyperlink (ie. it will launch whatever is the default browser)
0 Kudos
Message 1 of 3
(3,390 Views)
The simplest way to launch the default browser rather than to use the ActiveX interface is to make a call to the windows SDK ShellExecute function. This is essencially the same as double clicking on an html file.

Here is a sample call:

res = ShellExecute(0&, "open", url, NULL,NULL, 3)

for details on the shell execute function look it up in the Microsoft MSDN note that you will need the SDK toolkit for CVI in order to make the call.

Hope this helps.
Regards,
Amaury R.
NI Applications Engineer
Message 2 of 3
(3,390 Views)
Thanks - It works great the only thing for anyone else who tries this is to remember to include windows.h and shellapi.h (in that order!) at the top of your program.
0 Kudos
Message 3 of 3
(3,390 Views)