serialization library problems with MFC support for OLE ControlsWell, its
difficult address problems generated by the compiler.
However, you might be able to keep serialization headers and Mfc/ole headers
out if the same module using the technique shown in the PIMPL example. This
would ameliorate this problem, make your application more robust and improve
re-build times.
Robert Ramey
"Muruganathan Annamalai" wrote in
message news:037B536F875D9F4CA23B747E40FCF97B065E2698@blrk001a.sisl.co.in...
hi,
Iam using VC6. I had problems using boost serialization library classes
with MFC support for OLE controls. This is what I have,
#include // MFC support for OLE Controls
#include
#include
.............
..............
When I compiled the code I got errors like,
:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(72) : error
C2039: 'char_type' : is not a member of 'IStream'
D:\Devstudio_6.0\VC98\INCLUDE\objidl.h(4049) : see declaration of
'IStream'
D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(121) :
see reference to class template instantiation
'boost::archive::basic_text_iprimitive<IStream>' being compiled
D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(72) : error
C2065: 'char_type' : undeclared identifier
D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(121) :
see reference to class template instantiation
'boost::archive::basic_text_iprimitive<IStream>' being compiled
D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(73) : error
C2039: 'traits_type' : is not a member of 'IStream'
D:\Devstudio_6.0\VC98\INCLUDE\objidl.h(4049) : see declaration of
'IStream'
I think, error is because MFC has class called IStream. And the same name
IStream is used as template parameter
in the boost class.
Is there anything I can do to overcome this problem.
annamalai
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users