To compile your code in Visual C++ you need to use Multi-Byte char WinAPI functions instead of Wide char ones.
Set Project -> Properties -> General -> Character Set option to Use Multi-Byte Character Set
I found it here https://stackoverflow.com/a/33001454/5646315
More Related Contents:
- Bit manipulation, return 0 if x != 0, or nonzero otherwise
- Cascaded and nested if statements in C programming language
- What are the flags and macros in a Makefile? [closed]
- Inserting linked list at the end [closed]
- How do I work with dynamic multi-dimensional arrays in C?
- How to share memory between processes created by fork()?
- How does GCC implement variable-length arrays?
- Case Insensitive String Comparison in C
- What is the full “for” loop syntax in C?
- What does #x inside a C macro mean?
- Recommended gcc warning options for C [closed]
- Build .so file from .c file using gcc command line
- In C, why is sizeof(char) 1, when ‘a’ is an int?
- Performance of 2-dimensional array vs 1-dimensional array
- How can I run a C program on Mac OS X using Terminal?
- Limit a double to two decimal places [duplicate]
- How to solve “ptrace operation not permitted” when trying to attach GDB to a process?
- what’s the difference between the printf and vprintf function families, and when should I use one over the other?
- dynamic allocating array of arrays in C
- Yet Another MinGW “gcc: error: CreateProcess: No such file or directory”
- Type punning and Unions in C
- Trying to generate 9 digit numbers with each unique digits
- Why does printf print random value with float and integer format specifier
- Pointer arithmetic when void has unknown size [closed]
- How do you write a C program to execute another program?
- Difference between char a[]=”string”; char *p=”string”; [duplicate]
- Should we use exit() in C?
- C: SIGALRM – alarm to display message every second
- ANSI C No-echo keyboard input
- Getting multiple values with scanf()