הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
string too big, trailing characters truncated
Remarks
The string was longer than the limit of 16380 single-byte characters.
Before adjacent strings get concatenated, a string can't be longer than 16380 single-byte characters.
A Unicode string of about one half this length would also generate this error.
Example
If you have a string defined as follows, it generates C2026:
char sz[] =
"\
imagine a really, really \
long string here\
";
You could break it up as follows:
char sz[] =
"\
imagine a really, really "
"long string here\
";
You may want to store exceptionally large string literals (32K or more) in a custom resource or an external file. For more information, see To create a new custom or data resource.