Wednesday, May 21, 2008

error C2026: string too big, trailing characters truncated

One solution to resolve this error :error C2026: string too big, trailing characters truncated
#define S0 _J("abcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxyabcdefghijklmnopqrstuvwxy")
#define S1 S0 S0 S0 S0 S0 S0 S0
void main()
{
JCHAR command[] = S1;
: : : : :
}

No comments: