launch CHM

Post here any ideas/problems/suggestions you have regarding CodeLite's ExternalTools plugin
jfouche
CodeLite Guru
Posts: 351
Joined: Mon Oct 20, 2008 7:26 pm
Genuine User: Yes
IDE Question: C++
Location: France
Contact:

launch CHM

Post 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" ?
Jérémie
sdolim
CodeLite Veteran
Posts: 69
Joined: Fri Oct 24, 2008 10:29 pm
Contact:

Re: launch CHM

Post 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.
irmlab
CodeLite Curious
Posts: 5
Joined: Tue Jun 15, 2010 10:07 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: launch CHM

Post 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
Post Reply