array of bytes
-
Hi all, I am making one win32 client-server application using VC++.NET 2003. I am using
NetworkStream->Write()
function to send data. Now I am new in C++ programming and I want to send some BYTE values using this function but I don’t know how can I make array of all BYTEs I have. I know I can make array of BYTE from string usingEncoding::ASCII->GetBytes()
function but I have raw BYTE data like0x09, 0x31, 0x21
etc.. Thanks in advance, Priyank -
Hi all, I am making one win32 client-server application using VC++.NET 2003. I am using
NetworkStream->Write()
function to send data. Now I am new in C++ programming and I want to send some BYTE values using this function but I don’t know how can I make array of all BYTEs I have. I know I can make array of BYTE from string usingEncoding::ASCII->GetBytes()
function but I have raw BYTE data like0x09, 0x31, 0x21
etc.. Thanks in advance, Priyank -
For instance
BYTE myByteArray[]={0x09, 0x31, 0x21};
:)
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.
Thanks, It works for
BYTE myByteArray[]={{0x09}, {0x31}, {0x21}};
but I want to use the same variable for many time. How can I enter new values after sometime?