Compiler error C2065 and _mbstowcsz
When I convert a Visual C++ 6.0 project to Visual C++ .NET by opening the project using .NET environment, and accepting all VC 7.0 conversion defaults, the new project would not compile, and gives this error:
Compiler error C2065: '_mbstowcsz': undeclared identifier.
This functions compiles ok on VC++ 6.0.
Since VC++6.0 and VC++.NET put this function in different locations, I did change the included path, and make it use Dynamic ATL since in VC++.NET this function is in atlmfc/include. But nothing works.
"_mbstowcsz".NET - Dazzed & Confused
I have exactely the same problem :mad:
the function "_mbstowcsz" is in cstringt.h(91)
never compiled in .NET even when I include the
h file. Why?