-
July 26th, 2009, 01:03 AM
#1
could some1 have a look
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?
-
July 26th, 2009, 01:10 AM
#2
Re: could some1 have a look
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
-
July 26th, 2009, 01:28 AM
#3
Re: could some1 have a look
(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)
-
July 26th, 2009, 09:50 AM
#4
ty
thank you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|