Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-01-24 11:47:49


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" <Annamalai.Muruganathan_at_[hidden]> wrote in
message news:037B536F875D9F4CA23B747E40FCF97B065E2698_at_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 <afxctl.h> // MFC support for OLE Controls
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>

.............
..............

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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net