Hello
How can I use function CAtlString::Format under VS2005 (with ATL8.0) to format string longer then 1024 characters - for SmartDevice ATL application! I have problem with of CStringT class and template parameter StrTraitATL because using function wvsprintf in ChTraitsOS::GetFormattedLength (The maximum size of the buffer is 1024 characters)
Thanks,
Michal

CAtlString::Format problem under VS2005 - Smart Device application - ATL 8.0
FredLarson
Have a look at the CStringT class documentation at.
http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/vclrfcstringt.asp
You have two options: ATL string objects use format functions that limit size at 1024. While I think the mfc version uses the functions vsprintf, vswprintf. These functions don't have any limit on the size of buffer but are unsafe. Have a look at.
http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/_crt_vsprintf.2c_.vswprintf.asp
I think you have to use these functions if you want to have buffer lengths in excess of 1024.
Hope this helps.
Thanks