Hi, I have problem putting a value to 16 bits variable. Here is, how I am doing it.
typedef unsigned int UINT;
typedef UINT* ID_PTR;
unsigned short int myclass[5];
const ID_PTR arr16_bit[5] = {
(UINT*) &myclass[0],
(UINT*) &myclass[1],
(UINT*) &myclass[2],
(UINT*) &myclass[3],
};
Now accessing the myclass like this.
*(*(arr16_bit + 2)) = 65000;
I can access the array, but the 65000 is cut to 8 bits. Why?
/thanks
kursist