Converting TCHAR* to char*?

Started by
1 comment, last by _damN_ 14 years, 10 months ago
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!
Advertisement
Most easiest way is to change C++ project settings - set "Character Set" to "Use Multi-Byte Character Set".
OMG! THANK YOU SO MUCH! Now i can actually move forward!

This topic is closed to new replies.

Advertisement