none
CString is being initialized with -1 RRS feed

  • Question

  • Hi, the strangest problem. Line like that below causes the CString object value to be = -1; 

    CString str;//after that line str will have -1!!!

    Looked through project settings, didn't find anything suspicious. Applications uses "Use Multi-Byte Character Set"

    Any help really appreciated.

    Thank you

    Wednesday, September 25, 2019 1:11 PM

Answers

  • OK, problem solved. _itoa was writing where it shouldn't and that was causing that strange behavior.
    • Marked as answer by smallC795 Thursday, September 26, 2019 12:59 PM
    Thursday, September 26, 2019 12:59 PM