Can I use streaming structures in ATL? -
hi i'm developing com component in atl project. want use std::ostringstream logging trace log4cxx. unfortunately seems atl doesn't support std::ostringstream , derivatives. of have idea how can use streaming classes in atl project or alternative way? thanks.
actually found mistake. missing header file.
#include "stdafx.h" #include <sstream> #include "util.h" #include <comutil.h> std::ostringstream pvarobject_t2string(variant const *pvarobject) { std::ostringstream str; str<<"test"; str<<"licence id: "<< pvarobject[ 0 ].bstrval; return str; }
Comments
Post a Comment