information to spurious VC6 compiler error C1001

Nusret Taşçı nusi at sofha.de
Wed Aug 23 04:54:52 PDT 2006


Hallo Thomas,

> The following statement lead to C1001 error, too (happend in unicode release 
> version):
> wxString str = _("string");
> ...
> str += _("\nsome further text);

> Rewriting the statement to
> str = str + _("\nsome further text);
> works, so it seems that the operater+= definition makes the problem.

Are you mixing MFC with wxWidgets?
I think, the macro '_' has another meaning within MFC than within 
wxWidgets, which might result to some casting issues, which break your code.
But that's just random guessing.

Nusi




More information about the wx-users mailing list