Page 1 of 1

DocMaker generated chm for lib doesnt work with F1 on proced

Posted: Mon Apr 20, 2015 9:16 pm
by Didelphodon
Recently I built with DocMaker a chm helpfile for one of my libraries but it seems that the propagated usecase of automatically showing the matching page for the procedure under the cursor when pressing F1 is somehow broken. Is there something I have to care for to have that functionality working?

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Tue Apr 21, 2015 5:30 am
by Danilo
Did you add LibName.chm to your library.desc? And the pages are named FunctionName.html, not .htm?
HTML pages are in the main directory within the .chm, no sub-directory?

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Tue Apr 21, 2015 4:07 pm
by Didelphodon
Danilo wrote:Did you add LibName.chm to your library.desc? And the pages are named FunctionName.html, not .htm?
HTML pages are in the main directory within the .chm, no sub-directory?
library.desc - what's that? All the rest (.html, .chm, etc.) is generated by DocMaker, so I expect(ed) it to do it right - well, I checked for .html or .htm => .html, and there's also no subdirectory besides the main-(sub-)directory which is done automatically by DocMaker.

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Wed Apr 22, 2015 6:03 am
by Danilo
Didelphodon wrote:library.desc - what's that?
It's your library description. PB's LibraryMaker (in PB SDK) combines a .desc and .lib/.obj into a PureBasic library.
The .desc contains informations about imported libs, all your new commands and its parameters, etc.
One entry in the .desc is for the 'help directory', which is your library.chm on Windows.
Examples of PB Libs (ASM/C) and .desc library descriptions are to be found in the PB SDK.

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Wed Apr 22, 2015 8:28 am
by Didelphodon
Danilo wrote:
Didelphodon wrote:library.desc - what's that?
It's your library description. PB's LibraryMaker (in PB SDK) combines a .desc and .lib/.obj into a PureBasic library.
The .desc contains informations about imported libs, all your new commands and its parameters, etc.
One entry in the .desc is for the 'help directory', which is your library.chm on Windows.
Examples of PB Libs (ASM/C) and .desc library descriptions are to be found in the PB SDK.
Ah, understood. Well, I just wanted to add a CHM helpfile for my own library still in source code which I add to my projects/programs via IncludeFile. I guess I'll have to go the LibraryMaker-way to be able to achieve the F1-functionality?

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Wed Apr 22, 2015 8:55 am
by Fred
Yes, it's needed but you will have another issue: the commands will then be declared as internal and will clash with the one found in your sources.

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Wed Apr 22, 2015 11:18 am
by Danilo
Fred wrote:Yes, it's needed but you will have another issue: the commands will then be declared as internal and will clash with the one found in your sources.
After porting his lib to C or ASM (or any language who's compiler is able to output PB-compatible .obj/.lib),
he does not need to include it as source anymore.

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Wed Apr 22, 2015 2:04 pm
by Didelphodon
Danilo wrote:
Fred wrote:Yes, it's needed but you will have another issue: the commands will then be declared as internal and will clash with the one found in your sources.
After porting his lib to C or ASM (or any language who's compiler is able to output PB-compatible .obj/.lib),
he does not need to include it as source anymore.
True. However, is it really necessary to convert/translate the lib to another language than native PB? I thought one can write a PB userlib natively in PB.

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Wed Apr 22, 2015 6:38 pm
by Danilo
Didelphodon wrote:However, is it really necessary to convert/translate the lib to another language than native PB? I thought one can write a PB userlib natively in PB.
PB itself does not support it. There are rumours that TailBite was created to do that, but I never used it. Check it out yourself.

- http://www.tailbite.com/
TailBite is a tool that splits the PureBasic.asm file generated by PureBasic for Windows from a *.pb source file into several asm files,
and compiles them into a PureBasic library using different tools included with PureBasic.

Re: DocMaker generated chm for lib doesnt work with F1 on pr

Posted: Thu Apr 23, 2015 12:14 pm
by Didelphodon
Danilo wrote:
Didelphodon wrote:However, is it really necessary to convert/translate the lib to another language than native PB? I thought one can write a PB userlib natively in PB.
PB itself does not support it. There are rumours that TailBite was created to do that, but I never used it. Check it out yourself.

- http://www.tailbite.com/
TailBite is a tool that splits the PureBasic.asm file generated by PureBasic for Windows from a *.pb source file into several asm files,
and compiles them into a PureBasic library using different tools included with PureBasic.
Ah, yes, I remember tailbite - long ago ;-)