hh_compiler: add usage and diagnostic messages#1075
hh_compiler: add usage and diagnostic messages#1075johnd0e wants to merge 2 commits intoFarGroup:masterfrom
Conversation
|
|
|
The next thing I usually try is, instead of installing that legacy piece of software into my system, (Source: http://mvps.org/htmlhelpcenter/itircl.htm) Note that this message appears only when But yes, in general, there is no need to install the full HTML Workshop package; it's enough to have just two files of its content. |
So what is the 'recommended' way? |
|
Officially, I don't recommend anything other than the official installation. And even in this case, problems may arise, and the solution that I present was originally focused on a fully installed Workshop. |
That's perfectly fine, I'm not judging.
|
This is exactly what is encountered by anyone who does not have the workshop installed.
This applies only in case of one very specific error. And the path is determined dynamically.
The location is wherever the loaded hha.dll is located. This is normally in c:\windows\system32 (syswow64).
The exact path should still be specified even if the DLL is located in the current directory, because the command will be run with elevated privileges. As for exact command, than I will check it again tomorrow, thank you for pointing this out. |
fixed |
| #include <cstdio> | ||
| #include <windows.h> | ||
| #include <shlwapi.h> | ||
| #pragma comment(lib, "shlwapi.lib") |
| } | ||
|
|
||
| // Custom logging function for intercepting error messages | ||
| static int __cdecl LogCallback(const char* format, ...) |
There was a problem hiding this comment.
__cdecl is default, no need to be explicit.
Guide user through solution of cryptic "HHC6003: Error: The file Itircl.dll has not been registered correctly." Source: https://web.archive.org/web/20000620213107/http://mvps.org/htmlhelpcenter/itircl.htm
|



Every time (if I haven't edited the help files for a long time), I run into the issue of CHM compilation failing.
And each time, it takes some time before I figure out the cause.
The reason is trivial: the Microsoft HTML Help Workshop must be installed.
However,
hh_compiler.exesimply exits silently without any error messages.Given that it doesn't output any messages upon launch, it's initially unclear whether it's working at all.
Therefore, I've added the following messages:
Usage:
Error encountered
Normal flow