typecasting WCHAR to char
-
Hi, I have a propreitary API which accepts char as a parameter. But I have a WCHAR variable. I need to typecast WCHAR variable to char. Thanks
-
Hi, I have a propreitary API which accepts char as a parameter. But I have a WCHAR variable. I need to typecast WCHAR variable to char. Thanks
Use
WideCharToMultiByte
.«_Superman_»
-
Hi, I have a propreitary API which accepts char as a parameter. But I have a WCHAR variable. I need to typecast WCHAR variable to char. Thanks
Nope. You need instead a better understanding, see, for instance [^], [^]. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]