Silverfrost Forums

Welcome to our forums

Displaying local HTM files

28 Feb 2009 8:57 #4346

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

28 Feb 2009 12:12 #4348

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);
Please login to reply.