io::filtering_ostream out; out.push(zlib_compressor()); out.push(base64_encoder()); out.push(file_sink(strFilename)); #include <boost/iostreams/device/file_descriptor.hpp> #include <boost/iostreams/filtering_stream.hpp> #include <boost/iostreams/filter/zlib.hpp> #include "..\inc\zlib.h" #include "..\inc\zconf.h" I have added the zlib.cpp to my Visual C++ 6.0 project. I have added the preprocessor definition BOOST_IOSTREAMS_NO_LIB to my project. I am linking to ..\lib\zlib.dll (but I guess this is not important yet)... Any ideas at all would be extremely appreciated! Many thanks, Mike
From novice to tech pro — start learning today.