Vlad,
>As you already said, the call of this function (from VFP) crashes VFP. Anyway, I really don't see how the conversion would be done. CString is a class, and C is not OO.
Internally the CString is still just a char memory buffer with stored length. The online VC++ docs show it can be substituted for C char arrays. Since you can send it as the source to strcpy() that pretty much says it works the same. I think the crashing is simply related to a memory allocation issue.