CString and strcpy in VS 2008 and VC++ 6.0

I was faced with an interesting problem recently, which originated from a mix between the CString class and the C-style char* strings. An ocx (yes, apparently they are not extinct) component written in C++ was receiving a string from a .NET application. After executing a bunch of procedures on this string, it was supposed to…

2