Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 7, 2005, 2:53 am
rate this thread
Using Perl 5.8.1
I tried to build Text-CHM using VS6, sp5.
Homepage for the module is here
I get fatal errors. I have emailed the author
my error log.
I managed to build pychm in the same env., which
also is based on CHMLIB.
Anyone succeeded, or knows another way to read the
CHM central directory with Perl?
tlviewerSHRUB@yahooCHENEY.com a dit...
>Using Perl 5.8.1
> Win2k sp4
>I tried to build Text-CHM using VS6, sp5.
>Homepage for the module is here
>I get fatal errors. I have emailed the author
>my error log.
Apply the following patch to CHM.xs:
--- CHM.xs.orig Mon Mar 07 21:48:52 2005
+++ CHM.xs Sun May 08 11:14:20 2005
@@ -6,6 +6,10 @@
+#define strncasecmp _strnicmp
/* Including the chm header */
@@ -359,7 +363,7 @@
get_object( self, objname )
ChmObj * self;
char * objname;
unsigned char * buf;
@@ -370,7 +374,7 @@
get_filelist( self )
ChmObj * self;
struct ChmObjData *contents = NULL;
HV * hash;
No compilation error with VisualC++ 6.0 + Service Pack 6.
You can find Text::CHM in my ppm repository:
for Perl5.6 and Perl5.8
You can install it with the command
ppm install http://www.bribes.org/perl/ppm/Text-CHM.ppd
in a DOS console.
Your PPD did the trick--thanks.
One of the first CHM files I tried it on had a corrupted #STRINGS file,
leading to a Dr. Watson. What I didn't realize was that this module
doesn't correctly give you the central directory, but instead, dumps
the #STRINGS file. This is not the ideal way.
Any CHM that has a valid #STRINGS will work fine. However, the one CHM
virus that I tried to open had the corrupted variety.
thanks again for the PPD and VC patches,
- » How to invoke a CGI script within a Perl program ?
- — Previous thread in » PERL Modules Announcements