This line:

m_pchString[m_nLength-1] = '';

What you probably mean is:

m_pchString[m_nLength-1] = '\0';

Or even:

m_pchString[m_nLength-1] = 0;

Strings are zero terminated, which is written as a plain 0 or the null character '\0'. For double quote strings "" the zero termintation character is implicitly added to the end, but since you explicitly set a single character you must specify which.

Answer from Tommy Andersen on Stack Overflow
🌐
Arduino Forum
forum.arduino.cc › projects › programming
"empty character constant" compile error - Programming - Arduino Forum
November 21, 2020 - This program from How To Test The SPI Module Of Arduino- (Part 32/49) gives a compile error ("empty character constant") at this line: for(i = 0; outByte !=''; i ++) The '' are really two separate ', not a single". Wh…
Discussions

Empty character constant in C - Stack Overflow
I've tried changing it to double quotes, but this is wrong. I also tried figuring out what it means, but the compiler keeps giving me the same error. [Error] empty character constant Code #includ... More on stackoverflow.com
🌐 stackoverflow.com
error message
after attempting to upload morse code translator i recieve error: empty character constant. what does that mean? More on forum.arduino.cc
🌐 forum.arduino.cc
0
0
October 21, 2014
[Cuda 8, Win 10] error C2137: empty character constant
We end up with this error in every file that includes thrust: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include\thrust/detail/integer_traits.h(68): error C2137: empty character constant We’re still using Cuda 8.0 and have no plan to update it soon. More on forums.developer.nvidia.com
🌐 forums.developer.nvidia.com
0
0
July 17, 2020
c - How does one represent the empty char? - Stack Overflow
I'm currently writing a little program but I keep getting this error when compiling error: empty character constant I realize it's because I'm trying to replace a valid char with empty space c[i]... More on stackoverflow.com
🌐 stackoverflow.com
December 30, 2019
🌐
Cprogramming
cboard.cprogramming.com › cplusplus-programming › 26100-empty-character-constant-error.html
empty character constant error - C Board - Cprogramming.com
void NameFind(string carName[], string workOrder[], string mechanic[], int count, char let) { int a; int b=0; cout << "\nCars with last name beginning with" << let << ":\n"; for(a=0; a<count; ++a) { if(carName[a].find(toupper(let)) ==0) { cout << "\nCar name:" << carName[a] << '' << "Work order:" << workOrder[a] << '' << "Mechanic:" <<mechanic[a];//error appears in this line????
🌐
YouTube
youtube.com › linuxtarget
empty character constant - YouTube
How to fix compilation error: empty character constant.#syntax #c #howto #clanguage #cppprogramming #error #compiler #codeblocks
Published   September 13, 2022
Views   799
🌐
Arduino Forum
forum.arduino.cc › projects › programming
error message - Programming - Arduino Forum
October 21, 2014 - after attempting to upload morse code translator i recieve error: empty character constant. what does that mean?
🌐
DaniWeb
daniweb.com › programming › software-development › threads › 242081 › error-c2137-empty-character-constant
c++ - Error C2137: Empty Character Constant? | DaniWeb
The compiler error comes from the use of '': C/C++ does not allow an empty character literal. A character literal must contain exactly one character (e.g. 'a') and a string literal ("") is an array/type incompatible with char.
Find elsewhere
🌐
NVIDIA Developer Forums
forums.developer.nvidia.com › developer tools › cuda developer tools
[Cuda 8, Win 10] error C2137: empty character constant - CUDA Developer Tools - NVIDIA Developer Forums
July 17, 2020 - We end up with this error in every file that includes thrust: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include\thrust/detail/integer_traits.h(68): error C2137: empty character constant We’re still using Cuda 8.0 and have no plan to update it soon.
🌐
Narkive
macports-users.macosforge.narkive.com › csYUYhnN › how-to-make-c-realize-empty-character-constant
How to make c++ realize empty character constant ''?
Permalink It seems to me you are trying to "assign" a character value to a string. A character is a single 8-bit (or 9 or 10 or 16 or 32 ...) value. A string is a series of characters, terminated or not.
🌐
Embarcadero
docwiki.embarcadero.com › RADStudio › › Sydney › en › E2129_Character_constant_too_long_(or_empty)_(C++)
E2129 Character constant too long (or empty) (C++)
13.0 release available - Learn More · Help for RAD Studio 10.4 Sydney · From RAD Studio · Jump to: navigation, search · Overview · Feature Overview · What's New · Release Notes · 10.4 Sydney - Release 1 · 10.4 Sydney - Release 2
🌐
Programmersought
programmersought.com › article › 6887743364
Error empty character constant solution - Programmer Sought
The reason is that there is a space for the single quotes in line 26, and the English meaning of empty character constant is the prompt null character. ... PDFBOX version Cover the FontMapperimpl class, as shown in the figure In the FONTMAPPERIMPL class, the original TTF file is replaced with ...