To compile your code in Visual C++ you need to use Multi-Byte char WinAPI functions instead of Wide char ones.
Set Project -> Properties -> Advanced (or. General for older versions) -> Character Set option to Use Multi-Byte Character Set
More Related Contents:
- Disable single warning error
- Will new return NULL in any case?
- CreateProcess from memory buffer
- Convert CString to const char*
- Why comparing double and float leads to unexpected result? [duplicate]
- C++ #include is not found
- What does the operation c=a+++b mean?
- Why exactly do I need an explicit upcast when implementing QueryInterface() in an object with multiple interfaces()
- Why does VS not define the alternative tokens for logical operators?
- Is using #pragma warning push/pop the right way to temporarily alter warning level?
- Why do I need double layer of indirection for macros?
- Will C++ exceptions safely propagate through C code?
- How to export a C++ class from a dll? [duplicate]
- Why aren’t static const floats allowed? [duplicate]
- Is std::string size() a O(1) operation?
- DLL References in Visual C++
- Exception Error c0000005 in VC++
- How to test if preprocessor symbol is #define’d but has no value?
- C++20 constexpr vector and string not working
- Why does this program crash: passing of std::string between DLLs
- Double delete in initializer_list vs 2013
- What is the difference between the /Ox and /O2 compiler options?
- Dereferencing deleted pointers always result in an Access Violation?
- How do YOU reduce compile time, and linking time for Visual C++ projects (native C++)?
- LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT_StaticRelease’ doesn’t match value ‘MD_DynamicRelease’ in file.obj
- How to enforce the ‘override’ keyword?
- C++ Memory Barriers for Atomics
- Address of function is not actual code address
- How to tell if a lib was compiled with /mt or /md?
- C++ delete does not free all memory (Windows)