locked
CharNext equivalent for winstore apps? RRS feed

  • Question

  • Hi,

    I am porting a large codebase to winstore, but got stuck with some string functions. CharNext (and CharNextExA) have become Desktop-only. Still, several functions in our libraries need to iterate through MBCS strings. What is the correct way to do this in WinStore apps?

    Thank You,

    György

    Tuesday, November 12, 2013 2:55 PM

Answers

  • For Windows Store apps, the APIs are designed to support only UNICODE. You can use MultiByteToWideChar to convert MBCS to UNICODE. Then moving to the next character is always a simple +1 index.

    Tuesday, November 12, 2013 7:23 PM