ok so i try compiling this and i get
error C2036: 'void *' : unknown size
on this peice of code
Write_PATCH((void*)0xCFBE9C+0xBC, &MYCOORDPTR, sizeof(MYCOORDPTR));
DWORD YCOORD2 = 0xCFBE9C+0xBC+0x8;//2
can any1 tell me what i have wrong?
Printable View
ok so i try compiling this and i get
error C2036: 'void *' : unknown size
on this peice of code
Write_PATCH((void*)0xCFBE9C+0xBC, &MYCOORDPTR, sizeof(MYCOORDPTR));
DWORD YCOORD2 = 0xCFBE9C+0xBC+0x8;//2
can any1 tell me what i have wrong?
sry didnt find how to edit my post....
i know i can write it like this
Write_PATCH((void*)0xCFBF58, &MYCOORDPTR, sizeof(MYCOORDPTR));
DWORD YCOORD2 = 0xCFBE9C+0xBC+0x8;//2
but for the sake of learning why cant i write it like this
Write_PATCH((void*)0xCFBE9C+0xBC, &MYCOORDPTR, sizeof(MYCOORDPTR));
DWORD YCOORD2 = 0xCFBE9C+0xBC+0x8;//2
(char*)0xCFBE9C+0xBC
Can be written as:
0xCFBE9C+0xBC*sizeof(char)
(short*)0xCFBE9C+0xBC
Can be written as:
0xCFBE9C+0xBC*sizeof(short)
Your code:
(void*)0xCFBE9C+0xBC
Can be written as:
0xCFBE9C+0xBC*sizeof(void) // ??
sizeof(void) is not defined, you don't provide enough information to make pointer arithmetic. But you can write:
(void*)(0xCFBE9C+0xBC)
thank you very much :)