I know this is almost a year old thread, but I had the same problem today and I figured out what was wrong. The problem is that the project settings default to unicode character set. All you need to do is change it from unicode to not set in the project settings under configuration properties -> general. Also note that you will need to change this setting for debugging mode and release mode.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.