views:

62

answers:

2

Is there a way to set the character set to multi byte in code. By that I mean without going into the properties of the compiler and setting it. I mean it by, well...in code. :p

Thanks in advanced it would mean a lot for an answer, this has been bugging me for a while. :D

+1  A: 

look at wcstombs() or perhaps WideCharToMultiByte()

Martin Neal
A: 

There are #defines that control how things are compiled:

#define _MBCS
John Dibling