All Forums
 Microsoft Windows CE
 eVC Application Development
 FYI: CString bug (%E)
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

3963

85 Posts

Posted - 04 Nov 2002 :  18:19:02  Show Profile  Email Poster
I found a bug in the CString implementation:

CString::Format doesn't handle the %E case correctly -- it neglects to allocate a new buffer and overwrites the default CString buffer -- "0.0E000" was showing up in the strangest places! See CString::FormatV in strex.cpp (for platform builder owners).

%e seems to work correctly, or you can call GetBuffer(int size) with size big enough to cover your digits...
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000