If you don't like having an external help compiler (for deployment you need to officially deploy the entire afaik SDK), there is also libchm, which is an open source C library that can write chms.
Delphi users may want to take a look at the free libchm implementation in the Free Pascal parasites, as the pascal solution makes embedding easier.
Marco van de voort
source share