> I have been searching for an answer to this problem for a few
> months. I have decided to try on the list again, but asking a
> slightly different question:
> Does anyone have or know where to get a ".a" version of the library
> htmlhelp.lib?
>
> I think my problem lies in the fact that I am using htmlhelp.lib
> from Microsoft and Dev-C++ only likes .a files.
I'm using htmlhelp in my projects, and the htmlhelp.lib works for me.
Did you try adding the full path to the htmlhelp.lib to the object
files ?
> Where are the original sources for htmlhelp.lib and how can I
> recompile them into a .a?
This wasn't necessary for me.. maybe you need a newer version of the
mingw linker ?
> My problem is this: I am trying to add help to my program (surely
> some people can do it, the Dev-C++ IDE has it!) - that is a Help
> menu item. I have got the menu but when I call the function HtmlHelp
> () nothing happens.
> If I try GetLastError() the message box doesn't even show up!
>
> If you know how to add HTML help (chm file) to a program, don't
> worry about all the errors I'm talking about above, just please try
> and help me by going through it step by step. I've got my .chm file
> which I made with the Microsoft Html Help compiler and a shareware
> Help file builder.
All i had to do was this:
I copied the htmlhelp.h to the dev-c++ dir and added this line to the
beginning of every .cpp file which is using the HTMLHelp function:
#include <htmlhelp.h>
I copied the htmlhelp lib inside the dev-c++ dir and added this to the
object files:
c:/dev-c++/lib/htmlhelp.lib
This is an example how i open a topic inside a help file:
HtmlHelp(hwnd,"myhelp.chm::/ToolMenu.html#Export",HH_DISPLAY_TOPIC,0);
> Or, if you know how to make a WinHelp() that would be good, but I
> prefer
> HTMLhelp.
>
> If worst comes to worst, I might have to just open this file like I
> would from the command prompt. How do you do that (Like calling
> system() in DOS programming eg. system(C:\hello.exe); opens
> hello.exe from within your program)?
>
> Thanks in advance to anyone who can post a meaningful reply!
>
> Ramana
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|