De facto, I am not familiar with VC compiler and do not use it often either. However, it really gives me a little surprise when I have a try, like the limitation on number of ‘else if’ (I could not remember the error code there). Here is an error I recently encountered – C2026 and some good workarounds – wish it help:)
Detailed instruction on MSDN for this error on Visual Studio 2005: http://msdn.microsoft.com/en-us/library/dddywwsc%28v=vs.80%29.aspx
Issue code episode:
char sz = " imagine a really, really long string here ";
Workaround 1 from MSDN:
char sz = " imagine a really, really " "long string here ";
Workaround 2 from sprintf/snprintf
char sz[ 50000]; char *ptr = sz; ptr += sprintf( ptr, "%s", "imaged long string - Part 1"); ptr += sprintf( ptr, "%s", "imaged long string - Part 2"); ...