While saving a string we save it in binary format and when try to read it fails. It is enough to add 'const' modificator to fix it. Please see the patch attached.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2007-08-07
assigned_to: nobody --> arnavpoch
status: open --> pending
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2007-08-07
Logged In: YES
user_id=1041244
Originator: NO
Hi Dmitry,
I don't understand your point as the only casts from [ATL|WTL]:CString are to LPCTSTR.
With which mix of [targetSDK : compiler : ATL version : WTL version : _CSTRING_NS] can't you get back with CAppInfoBase::Restore(_CSTRING_NS::CString& sval, ATL::_U_STRINGorID sName) a _CSTRING_NS::CString saved with the matching CAppInfoBase::Save(_CSTRING_NS::CString& sval, ATL::_U_STRINGorID sName)?
cheers,
AR
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1041244
Originator: NO
Hi Dmitry,
I don't understand your point as the only casts from [ATL|WTL]:CString are to LPCTSTR.
With which mix of [targetSDK : compiler : ATL version : WTL version : _CSTRING_NS] can't you get back with CAppInfoBase::Restore(_CSTRING_NS::CString& sval, ATL::_U_STRINGorID sName) a _CSTRING_NS::CString saved with the matching CAppInfoBase::Save(_CSTRING_NS::CString& sval, ATL::_U_STRINGorID sName)?
cheers,
AR
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).