Page 1 of 1

launch CHM

Posted: Tue Dec 30, 2008 6:47 pm
by jfouche
Hi
I tried to add help files as an external tool, but it doesn't work :

Code: Select all

15:40:54: Error: Execution of command '"C:\_Perso\projets\lib\wxWidgets-2.8.9\docs\htmlhelp\wx.chm" ' failed (error 193: unknown error c1)
I think the problem comes from the fact that it is not an executable file.
I also have :

Code: Select all

15:28:57: Error: Image file is not of type 15.
But I don't know if this comes from External Tool plugin (I didn't find "Image file is not of type" in CodeLite sources).
Am I right ? Is there a solution or must I create a "help plugin" ?

Re: launch CHM

Posted: Wed Dec 31, 2008 12:05 am
by sdolim
I think you have to say something like this:

cmd.exe /[some flag] start "my file.chm"

I don't know the exact flag -- whichever is the one that says "execute the rest of this line".

The "start" tells cmd.exe to find the right exe for your CHM file.

Alternatively, you could make a .bat file that has this "start ..." command in it.

Re: launch CHM

Posted: Tue Jun 15, 2010 11:14 pm
by irmlab
Apparently, this function requires a specific plug-in.

I found in Code::Blocks that the CHM implementation as a "word-at-cursor" help requires a plug-in.

On a simple command line, the CHM protocol requires the full path to the HTML page ("/x/y/keyword.htm")

The C::B Help plug-in uses the API and invokes the "Search" function in the CHM, then show the html page.

irm