LPCWSTR -> CString
Posted on 1998-10-12
I'm using a function called NetMessageBufferSend() that requires a LPCWSTR data type. This string does not seem to be compatible with the CString. I have created a WCHAR string that seems to work with the funtion, however, I am having problems transfering the data from the CString into the LPCWSTR.
I have tried wsprintf(),strcpy(),and wcscpy(), but none of them seem to work!
Can anyone please show me how to copy the contents of a CString into a WCHAR string(LPCWSTR)?