Jack
2009-08-05 08:07:08 UTC
Thanks for Ulrich bro for his advices. Now I know,
I have to swap the buffer to get the proper values
I wonder too, how do I access the "Hi" and "Lo" Byte of
wchar_t
wchar_t tem;
for (int i = 0; i < MAX_CHAR; i+=2)
{
HIBYTE(tem) = m_pBuffer[i];
LOBYTE(tem) = m_pBuffer[i+1];
}
This is simply dumb, because of the l-value stuff
How do I access the lo-byte and hi-byte individually
Thanks
Jack
I have to swap the buffer to get the proper values
I wonder too, how do I access the "Hi" and "Lo" Byte of
wchar_t
wchar_t tem;
for (int i = 0; i < MAX_CHAR; i+=2)
{
HIBYTE(tem) = m_pBuffer[i];
LOBYTE(tem) = m_pBuffer[i+1];
}
This is simply dumb, because of the l-value stuff
How do I access the lo-byte and hi-byte individually
Thanks
Jack