Mike
2009-07-07 12:47:53 UTC
After playing with this, and finally got it working,
http://msdn.microsoft.com/en-us/library/ms670096(VS.85).aspx
I am wondering if there a file naming limitation with the compiler or
something I am not doing right.
The issue seem to be a file name limitations:
My original HHP file had this:
[ALIAS]
#include wcsslConfig.Alias.h
[MAP]
#include wcsslConfig.hm
[TEXT POPUPS]
wcsslConfig.hm
wcsslconfig.topics.txt
The above files are auto-created (except wcsslconfig.topics.txt)
This compiles without warning so I assume "everything" was ok.
However, when calling HtmlHelp(), I got a cannot open help file error.
Cannont open the file "wcsslconfig.chm::wcsslconfig.topics.txt"
After a few hours trying to see what was wrong, trying full paths,
researching examples, getting 1/2 way there with HHC4012 warnings now,
I finally got it to work by renaming:
wcsslConfig.hm ==> wcsslconfig-topics.h
wcsslconfig.topics.txt ==> wcsslconfig-topics.txt
and changing the HtmlHelp() help file name to:
"wcsslconfig.chm::wcsslconfig-topics.txt"
So it seems, the compiler is looking for specific extensions and the
file name can only have one extension.
However, this doesn't seem to be the case with the alias file,
"wcsslConfig.Alias.h" That seems to be read in fine.
Anyway, it appears I have to change code that generate these files.
These files were used for the old help system, worked and there are
still some older projects using the old hlp (thats changing soon).
Is there a limitation in the compiler or am I including/importing them
incorrectly in the HHP file?
Thanks
--
http://msdn.microsoft.com/en-us/library/ms670096(VS.85).aspx
I am wondering if there a file naming limitation with the compiler or
something I am not doing right.
The issue seem to be a file name limitations:
My original HHP file had this:
[ALIAS]
#include wcsslConfig.Alias.h
[MAP]
#include wcsslConfig.hm
[TEXT POPUPS]
wcsslConfig.hm
wcsslconfig.topics.txt
The above files are auto-created (except wcsslconfig.topics.txt)
This compiles without warning so I assume "everything" was ok.
However, when calling HtmlHelp(), I got a cannot open help file error.
Cannont open the file "wcsslconfig.chm::wcsslconfig.topics.txt"
After a few hours trying to see what was wrong, trying full paths,
researching examples, getting 1/2 way there with HHC4012 warnings now,
I finally got it to work by renaming:
wcsslConfig.hm ==> wcsslconfig-topics.h
wcsslconfig.topics.txt ==> wcsslconfig-topics.txt
and changing the HtmlHelp() help file name to:
"wcsslconfig.chm::wcsslconfig-topics.txt"
So it seems, the compiler is looking for specific extensions and the
file name can only have one extension.
However, this doesn't seem to be the case with the alias file,
"wcsslConfig.Alias.h" That seems to be read in fine.
Anyway, it appears I have to change code that generate these files.
These files were used for the old help system, worked and there are
still some older projects using the old hlp (thats changing soon).
Is there a limitation in the compiler or am I including/importing them
incorrectly in the HHP file?
Thanks
--