
1 Mar
2005
1 Mar
'05
1:10 a.m.
Okay Brian, The following apparently works, but when OutputDebugString is called I don't see any output. I'm not sure if the previous version worked or not; I've run out of time for now. Jonathan struct debug_out_sink : boost::iostreams::sink { debug_out_sink () { using namespace boost::iostreams; chain_.push(newline_filter(newline::windows)); chain_.push(debug_out_sink_impl()); } void write(const char* s, std::streamsize n) { chain_.write(s, n); } boost::iostreams::detail::chain<boost::iostreams::output> chain_; };