I have some 'legacy' code (viz., someone else's code that I really don't understand very well) that requires the following conversion:
The code was probably written for an earlier compiler, say VC6.0. It gives the above noted error using VC7.0.Code:unsigned short *ucPtr; // Temporary name holder ucPtr = L"quit"; // error C2440: '=' : cannot convert from 'wchar_t [5]' to 'unsigned short *'
What's the problem here ?
Thanks.
Mike




Reply With Quote