المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Compile/decompile CHM files in C#



C# Programming
05-06-2009, 03:50 PM
Hi,

I want to decompile a CHM file (help file) and also be able to compile the generated files back to a CHM file again in C#.
I have tried to do this using Microsoft Html Help Workshop. I create a Process and decompile with hh.exe and it works fine. After that I create a Microsoft Html Help Workshop project file, and the project file works perfect if I compile in Microsoft Html Help Workshop. But if I create a Process in .Net and try to compile with hhc.exe I get a corrupt CHM file, it looks like a web page that not can be loaded. I got the same problem if I compile from command line -> hhc [project file].
HHC5013: Error:
runtime error R6002
- floating point not loaded

Is it possible to do this only in C#? Or anyone who knows what is wrong?
I have added Hh.exe and Hha.dll in my Path variable.

I am not sure where I shall post this question so I try here.

Best regards
Marc