I've a variable oByte with the type PUCHAR I want assign
this variable to another called TEMP that its type is UCHAR .
The oByte is the pointer which its value is the address of TEMP.
I have assigned oByte to TEMP by :
TEMP=*oByte;
Not related to any access violation, if your code does
exactly what you have described above then it serves no
useful purpose.
You say that "oByte is the pointer which its value is the
address of TEMP." You then dereference that pointer and
assign the value to TEMP. It should be obvious that what
this does is simply assign TEMP to TEMP.
Example:
UCHAR TEMP;
PUCHAR oByte = &TEMP;
TEMP = *oByte; // assigns TEMP to TEMP. Possible use
// of uninitialized variable TEMP
- Wayne