wchat_t to normal char
-
Hi All, I have an utility programme that uses wchar_t. However interfacing to our programme which uses char's is a problem. How does one convert to wchar_t to char, and visa versa? regards, Rich "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
-
Hi All, I have an utility programme that uses wchar_t. However interfacing to our programme which uses char's is a problem. How does one convert to wchar_t to char, and visa versa? regards, Rich "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
Check out the
W2A()
andA2W()
macros.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
Hi All, I have an utility programme that uses wchar_t. However interfacing to our programme which uses char's is a problem. How does one convert to wchar_t to char, and visa versa? regards, Rich "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook
RichardS wrote:
How does one convert to wchar_t to char
RichardS wrote:
and visa versa
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
-
Hi All, I have an utility programme that uses wchar_t. However interfacing to our programme which uses char's is a problem. How does one convert to wchar_t to char, and visa versa? regards, Rich "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far the Universe is winning." -- Rich Cook