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));