LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Internet browser

Hy,
anyone knows hot to add a hyperlink string to automaticaly open a internet
browser using CVI 8.0 ???
I mean like Outlook express when i wrote in a message www.gotosite.com

Thank' at all
Marco


0 Kudos
Message 1 of 7
(4,134 Views)
In CVI 9.0, there is a custom control called hyperlink control that can be used for this.  See Custom Controls >> Toolslib Controls >> HyperLink Control in the Create menu of the UI editor. Also, see samples/userint/custctlr/hyperlinkctrl. If you do not have CVI 9.0, you can basically use a Text Message control and in its callback use the OpenDocumentInDefaultViewer toolbox function to launch web pages.
0 Kudos
Message 2 of 7
(4,120 Views)
Thank's a lot for your suggest.
I tried to do what you say, but this is ok for bmp, txt and other files
type, but i have difficult with site address.
OpenDocumentInDefaultViewer return me -95.
I wrote ...
i=OpenDocumentInDefaultViewer ("www.this_site.com",0);

Have you other suggest ????

Thank's again
Marco


0 Kudos
Message 3 of 7
(4,112 Views)
blank_page

OpenDocumentInDefaultViewer ("www.ni.com", VAL_NO_ZOOM);

 

Works just fine for me with CVI 9.0 on Windows XP. Which version of CVI do you have? Also, try typing www.ni.com in the Windows Run dialog (Start >> Run on the desktop) and hit enter to see what happens - there may be some issue with the default web browser on your system.

0 Kudos
Message 4 of 7
(4,102 Views)
Hi,
I tried to do this, but doesn't work
In windows run dialog i have not problem. My browser is opened, but when i
use OpenDocumentInDefaultViewer i obtain always error -95.
I tried also to disable firewall but nothing.

I use CVI 8.0 on Win XP SP2

Thank's
Marco


0 Kudos
Message 5 of 7
(4,091 Views)
-95 is an 'Access Denied' error. I am not sure why you are getting this error. It comes from the Microsoft ShellExecuteEx function that is called by OpenDocumentInDefaultViewer - see toolbox.c. You can try replacing OpenDocumentInDefaultViewer with LaunchExecutable( "explorer.exe http://www.ni.com" ) and see if that works for you.
Message Edited by Mohan on 03-25-2009 09:57 AM
0 Kudos
Message 6 of 7
(4,072 Views)
I find a easy solution...
i used Internet library with "Launch Default Web Browser" function.
Some times it's better drink a little bit less. 😉

Thank's again
Marco


0 Kudos
Message 7 of 7
(4,068 Views)