View previous topic :: View next topic |
Author |
Message |
BILLDOWS
Joined: 22 Jul 2005 Posts: 86 Location: Swansea, UK
|
Posted: Sat Feb 28, 2009 9:57 am Post subject: Displaying local HTM files |
|
|
Two routines - USE_URL@ and the INTERNET_HYPERLINK callback - can be used to load web based URL's and the format used in this instance is naturally of the form 'http://www.silverfrost.com/...' etc
In some programs I wrote a few years ago to access local HTM files I used the above routines but used the format 'file:///c:/dir/index.htm' for the argument (adding a conversion function from the c:\dir\index.htm' format) - presumably because direct coding of 'c:\dir\index.htm' did not work.
Now, BOTH forms of addressing seem to work OK (on my default IE browser). Could anyone advise (a) what format might be preferable for reliable operation and (b) if there is any advantage / difference between the USE_URL@ and INTERNET_HYPERLINK approach for loading HTM files?
Many thanks for any assistance anyone can provide.
Bill |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Sat Feb 28, 2009 1:12 pm Post subject: |
|
|
No there is no real difference. Both approaches lead to a simple call to ShellExecute of the form...
ShellExecute(NULL,"open",link_name,NULL,"c:\\",SW_SHOW); |
|
Back to top |
|
 |
|