Home > Back-end >  How to use C decompression.bz2 archive
How to use C decompression.bz2 archive

Time:11-10

Recent work on a project, it needs under the Windows environment, using c + + read.bz2 compression of bin binary file, and then I see the document of bzip.org, download a copy of libraries, and then in VS2015 compiled DLL library, and used in a pilot program, found that there is an error in the bzRead, HTML code is as follows, please Daniel guidance, very grateful!

 
Const char * path=(filePath + fileName) c_str ();
Cout & lt; The FILE * fp=fopen (path, "rb +");
int a;
Cout & lt; BZFILE * bzFp=BZ2_bzReadOpen (& amp; A, fp, 4, 1, NULL, 0);
BZ2_bzread (bzFp, (char *) & amp; M_RadarInfo, sizeof (tagWEATHERRADAR));

CodePudding user response:

Predecessors to success, I also need to unzip the files, is the weather radar base

CodePudding user response:

refer to the original poster Ym shadow response:
recent work on a project, which needs in the Windows environment, using c + + read.bz2 compression of bin binary file, and then I see the document of bzip.org, download a copy of libraries, and then in VS2015 compiled DLL library, and used in a pilot program, found that there is an error in the bzRead, HTML code is as follows, please Daniel guidance, very grateful!

 
Const char * path=(filePath + fileName) c_str ();
Cout & lt; The FILE * fp=fopen (path, "rb +");
int a;
Cout & lt; BZFILE * bzFp=BZ2_bzReadOpen (& amp; A, fp, 4, 1, NULL, 0);
BZ2_bzread (bzFp, (char *) & amp; M_RadarInfo, sizeof (tagWEATHERRADAR));


Zip format can only.bz2 I haven't figured out

CodePudding user response:

I can, qq274892540, I need to contact me
  • Related