Declare Byte
-
For C#, the declaration of the byte is as below: public byte[] Header_byte = {0x10,0x00}; public byte[] DataLength_byte; But I don't know how to declare bytes in visual c++
-
For C#, the declaration of the byte is as below: public byte[] Header_byte = {0x10,0x00}; public byte[] DataLength_byte; But I don't know how to declare bytes in visual c++
-
For C#, the declaration of the byte is as below: public byte[] Header_byte = {0x10,0x00}; public byte[] DataLength_byte; But I don't know how to declare bytes in visual c++
-
For C#, the declaration of the byte is as below: public byte[] Header_byte = {0x10,0x00}; public byte[] DataLength_byte; But I don't know how to declare bytes in visual c++
For VC++ declaration of byte is byte buf[]={0x10,0x00}; I have used it in my MFC application and works fine . Locgically it is same as "unsinged char". Vikas Amin Embin Technology Bombay vikas.amin@embin.com
-
If you wan't bytes (8 bits), I suggest you use unsigned char unsigned char Header_byte[] = {0x10,0x00}; unsigned char DataLength_byte[]; or unsigned char *DataLength_byte;
When I use what you suggest,it got error below: error C2146: syntax error : missing ';' before identifier 'Header_byte' error C2377: 'byte' : redefinition;; typedef cannot be overloaded with any other symbol fatal error C1004: unexpected end of file found
-
When I use what you suggest,it got error below: error C2146: syntax error : missing ';' before identifier 'Header_byte' error C2377: 'byte' : redefinition;; typedef cannot be overloaded with any other symbol fatal error C1004: unexpected end of file found
-
When I use what you suggest,it got error below: error C2146: syntax error : missing ';' before identifier 'Header_byte' error C2377: 'byte' : redefinition;; typedef cannot be overloaded with any other symbol fatal error C1004: unexpected end of file found
-
Hello. I just compiled it. This works: unsigned char Header_byte[] = {0x10,0x00}; unsigned char *DataLength_byte2; This one doesn't due to "Unknown datasize": unsigned char DataLength_byte[];
-