Help compiling hbzip

This is a discussion on Help compiling hbzip within the xharbour forums in Programming Languages category; I woudl like to use hbzip in my program. I'm afraid I'm no good at compiling it though. I have downloaded the source code from the xharbour.org site and extracted. I downloaded and installed the Borland C++ compiler, too. But from there I can't figure out how to compile the zip library. Can someone help a novice at exactly how to compile the zip library? Thanks, Scott...

Go Back   Application Development Forum > Programming Languages > xharbour

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-01-2008, 07:16 PM
SHORTON
Guest
 
Default Help compiling hbzip

I woudl like to use hbzip in my program. I'm afraid I'm no good at
compiling it though. I have downloaded the source code from the
xharbour.org site and extracted.

I downloaded and installed the Borland C++ compiler, too.

But from there I can't figure out how to compile the zip library. Can
someone help a novice at exactly how to compile the zip library?

Thanks,
Scott

Reply With Quote
  #2  
Old 09-01-2008, 08:00 PM
bill robertson
Guest
 
Default Re: Help compiling hbzip

"SHORTON" <sales07@techht.com> wrote in message
news:44e3f490-e57c-4bb2-ae75-120b94a541b9@8g2000hse.googlegroups.com...
>I woudl like to use hbzip in my program. I'm afraid I'm no good at
> compiling it though. I have downloaded the source code from the
> xharbour.org site and extracted.
>
> I downloaded and installed the Borland C++ compiler, too.
>
> But from there I can't figure out how to compile the zip library. Can
> someone help a novice at exactly how to compile the zip library?
>
> Thanks,
> Scott


Hi Scott,

Just unzip the file and navigate to the contrib\hbzip directory. There you
should find a batch file called make_b32.bat. Run the .bat file and it
should make the lib and put it in the lib directory.


Reply With Quote
  #3  
Old 09-01-2008, 08:18 PM
SHORTON
Guest
 
Default Re: Help compiling hbzip


> Just unzip the file and navigate to the *contrib\hbzip directory. Thereyou
> should find a batch file called make_b32.bat. Run the .bat file and it
> should make the lib and put it in the lib directory.


Thank you. It didn't go that smoothly, complained about missing some
includes that after a search showed as part of the bcc includes. I
just copied those to the xHb include dir to fix that error (sure there
is a better way, but didn't know how). Then it failed becasue there
was a missing subdir in lib but I added it. THen it compiled and
produced the hbzip.lib file.

When I add the hbzip.lib file to my "lib" tab in xBuild and built,
xBuild never produces the exe. No error, just hangs. Not sure why,
maybe becasue I don't have anything in the lib referenced? Or maybe
it didn't build correctly. I tried deleting all the obj files and the
dll, then re-executing the make-b32.bat file. But it still hangs the
xBuild gui (ver 4.5).

>----------

Anyway, now I don't know what to do with the LIB once it is properly
compiled. <frown>.

I went to the artpol website (http://www.artpol-software.com/
ZipArchive/Usage.aspx) but I don't see how to use the functions in my
clipper program.

I am trying to zip all the dbf files in a directory and place the zip
file in another directory.

The old zip command line woudl have been:
PKZIP f:\PCP_BACK.ZIP -&fv -rP d:\mydir\*.DBF

There is an example on the artpol website that says to use the
CZipArchive::AddNewFile(CZipAddNewFileInfo&) method or one of its
overloads. :

CZipArchive zip;
// create a new archive
zip.Open(_T("C:\\Temp\\test.zip"), CZipArchive::zipCreate);
// simple add with the default compression level
zip.AddNewFile(_T("C:\\Temp\\file1.dat"));
// add a file and specify its name inside the archive
// to be different from original
zip.AddNewFile(_T("C:\\Temp\\file2.dat"), _T("renamed.dat"));
// add a file without compression
zip.AddNewFile(_T("C:\\Temp\\file3.dat"), 0);
// add a file with default compression and
// without the path information
zip.AddNewFile(_T("C:\\Temp\\file4.dat"), -1, false);
zip.Close();

But that is foriegn to me and I don't know how to do it in Clipper.

If I could see an example of how to do one thing, I could probably
figure out the rest from that exampel and the others on their website.

Can anyone show me how to us the hbzip.lib?

Thanks,
Scott







Reply With Quote
  #4  
Old 09-01-2008, 09:49 PM
SHORTON
Guest
 
Default Re: Help compiling hbzip

Nevermind:

I just found that the commercial version (which I have) has some file
zip functions. You'd never had known it from the documentation pdf I
purchased which does not include it.

But they did have it as a seperate brief document as part of the
normal install.

Thanks,
Scott

Reply With Quote
  #5  
Old 09-02-2008, 12:45 AM
bill robertson
Guest
 
Default Re: Help compiling hbzip

"SHORTON" <sales07@techht.com> wrote in message
news:a625c724-f21e-4a95-9699-37f4e2226fcf@l64g2000hse.googlegroups.com...
> Nevermind:
>
> I just found that the commercial version (which I have) has some file
> zip functions. You'd never had known it from the documentation pdf I
> purchased which does not include it.
>
> But they did have it as a seperate brief document as part of the
> normal install.
>
> Thanks,
> Scott


Hi Scott,

I don't think you can use Borland's compiler with the commercial version. It
uses a different compiler based on the Pellis compiler which would cause
some of the additional problems. I not sure which is worse, not having
documentation or having documentation which is incorrect. I just spent two
days chasing a problem that shouldn't have existed because the doc was wrong
and this isn't the first time that's happened.


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:41 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.