Error when executing archives .CHM

Error when executing archives .CHM

Postby vilian » Mon Apr 23, 2007 8:52 pm

Hi,

I do not obtain to open no safe archive .CHM in network(windows 2003 server). The same archive saved in the local record opens perfectly.

Why?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 920
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Postby James Bott » Tue Apr 24, 2007 6:49 am

It is due to Windows security--you can no longer run CHM files from a network drive unless to specifically configure the PC to allow that file to be loaded. The easier solution is just to copy the help file to the local driver. You could also just use pure HTML files, instead of compiled help files.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Ollie » Tue Apr 24, 2007 10:00 pm

What is a 'pure HTML' file? - as opposed to a compiled help file CHM?

I have read problems on this forum with HLP and CHM files. Is this the answer then? (pure HTML files)? How are they used?
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby James Bott » Tue Apr 24, 2007 10:34 pm

Ollie,

>What is a 'pure HTML' file? - as opposed to a compiled help file CHM?

CHM files are just compiled HTML files. Help generation software first creates an HTML file (just like any web page) then compiles all the HTML files into one CHM file. Then there is a special program that reads the CHM files to display the help. For whatever reason, Windows now considers CHM files a security threat, so they cannot be run from a network drive (unless the PC is configured to allow it).

So, if your Help generation software provides it, you can just export HTML files and put all the HTML files into a subdirectory of your application and then call whatever HTML file you wish from within your application.

Alternatively, you could just have the HTML help files on your Internet site and have the app look for them there. That way everyone is seeing the most current help files. Of course, customers would have to have Internet access.

One other way is that the app could look for the CHM file in a specific local directory, and if it is not found then create the directory and copy the file from the server. This could be done from within FW. Or, if the help file is found locally, it would be a good idea to check the file date against the one on the server and update the local copy if needed.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Ollie » Tue Apr 24, 2007 11:01 pm

Thank you. Its clear now.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 12 guests