Code::Blocks Forums

User forums => Help => Topic started by: Acki on January 30, 2006, 06:21:25 pm

Title: .col Help Files
Post by: Acki on January 30, 2006, 06:21:25 pm
Hi,
I can add own help files to the help menu, that's great !!!
But this works only for *.hlp, *.chm, *.htm,...
For example the MSDN's help file is a *.col !!!
This files are also using hh.exe, but I can't add them to the help menu !!!
I have to add them to the tools menu with command={win}\hh.exe and params=help.col !!!

So, is there a way to add '.col files to the help menu ???

thx, Acki
Title: Re: .col Help Files
Post by: Ceniza on January 31, 2006, 03:36:42 am
Well, I couldn't try that myself 'cause I don't have any .col files around, neither I could find any in the Internet.

If you click a .col file in Windows Explorer, does it get opened with hh?

At least in my system .col files are given a type name but not a program to open with. If that's also your case, could you try associating .col files to open with hh and try again with the help entries?

The help plugin uses wxWidgets' functions to open .chm and .hlp, but for any other extension it'll use the associated program with it.
Title: Re: .col Help Files
Post by: Acki on February 01, 2006, 01:35:23 am
No, col files aren't associated with a program !!!
I associated col files with hh.exe...
Double click works now, but it still doesn't work in CB's help menu !!! :(
CB tells me: "Couldn't find an associated program to open msdnvs6a.col"
I also tried to set the execution string like this:
C:\WINNT\hh.exe f:\MSDN\98VSa\1031\msdnvs6a.col
This is how it's done by the shortcut (windows start menu)...
Nothing works... :(

btw: col files are collection files ?!?!?

Code
// this also doesn't work:
WinHelp(NULL, "msdnvs6a.col", HELP_FINDER, 0);
Title: Re: .col Help Files
Post by: Ceniza on February 01, 2006, 02:39:56 am
After a few tests I got the reason it'sn't working. It's wxWidgets' fault.

Here's a workaround:

Go to Windows Explorer, Tools, ¿Folder options? (sorry, my Windows is in another language).

In that dialog, go to the Filetypes tab and search COL. Click on advanced options.

From there, be sure the action to open the file is called open and correctly set. That did the trick here.

Once again, it's wxWidgets' fault and can be considered a bug.



[attachment deleted by admin]
Title: Re: .col Help Files
Post by: takeshimiya on February 01, 2006, 03:43:02 am
Why a bug?
Title: Re: .col Help Files
Post by: Ceniza on February 01, 2006, 04:57:11 am
Quote from: Takeshi Miya
Why a bug?

'cause you could specify another one as default instead of open. At least the "default" association doesn't work (the one you can set telling Windows to "Open with..." and then "always use this program to open these files").