Converting TCHAR* to char*?
Hi there...
I have a function that requires me to convert a paramater to char* like so..
AddItem(m_hDEVICE, D3DDevTypeToString(pA->d3dDevs[d].d3dDevType),
&pA->d3dDevs[d]);
When i compile i get the error:
"error C2664: 'AddItem' : cannot convert parameter 2 from 'TCHAR *' to 'char *'"
Does someone have an easy way that i can convert parameter 2 from TCHAR* to char*?
Thanks!
Most easiest way is to change C++ project settings - set "Character Set" to "Use Multi-Byte Character Set".
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement