[C++] Odd error when building the solution

08/18/2014 14:55 [Rokudo]#1
Hey there guys !
I need a bit of help for my project .
So , i'm getting the following errors when i try to build/debug the solution :
[Only registered and activated users can see links. Click Here To Register...]



I don't know why i get this error , but what i've noticed is that the error only occurs in some parts of void WriteToMemory , so if i delete
i'm not getting the error anymore .

If you're thinking that i'm noob /beginner in coding and hacking - You are perfectly right . That's why i want to actually learn by practicing o.o
08/18/2014 17:57 Tasiro#2
Quote:
Originally Posted by [Rokudo] View Post
Code:
           DWORD HomingAddressToWrite = (1, hProcHandle, HomingOffsets, HomingBaseAddress);
You're using the comma operator. That operator evaluates both operands and discards the result of the first expression. The result of (1, hProcHandle, HomingOffsets, HomingBaseAddress) is HomingBaseAddress, which has the type DWORD[1]. That type is incompatible with the non-pointer type DWORD. Maybe a missing function name?
08/18/2014 18:47 [Rokudo]#3
Quote:
Originally Posted by Tasiro View Post
You're using the comma operator. That operator evaluates both operands and discards the result of the first expression. The result of (1, hProcHandle, HomingOffsets, HomingBaseAddress) is HomingBaseAddress, which has the type DWORD[1]. That type is incompatible with the non-pointer type DWORD. Maybe a missing function name?
You're probably right , but then why this
Code:
 DWORD SPAddressToWrite = (1, hProcHandle, SPOffsets, SPBaseAddress);
works fine , but this
Code:
 DWORD HomingAddressToWrite = (1, hProcHandle, HomingOffsets, HomingBaseAddress);
doesn't ?
08/18/2014 20:07 Tasiro#4
Code:
DWORD SPBaseAddress = {0x0048DDD2};
// ...
DWORD HomingBaseAddress [] = {0x00F230E7};
SPBaseAddress is a DWORD and is initialized with the new uniform initialization syntax. You could also write DWORD SPBaseAddress = 0x0048DDD2. HomingBaseAddress is an array.
08/18/2014 20:20 [Rokudo]#5
Quote:
Originally Posted by Tasiro View Post
Code:
DWORD SPBaseAddress = {0x0048DDD2};
// ...
DWORD HomingBaseAddress [] = {0x00F230E7};
SPBaseAddress is a DWORD and is initialized with the new uniform initialization syntax. You could also write DWORD SPBaseAddress = 0x0048DDD2. HomingBaseAddress is an array.
lol i'm such a noob >.< Thank you :3
#Edit : Any sweg Mod could close the thread if you feel like so :?
08/20/2014 14:03 Delinquenz#6
Quote:
#Solved
Why did you delete your opening post?
08/20/2014 16:24 [Rokudo]#7
Quote:
Originally Posted by Delinquenz View Post
Why did you delete your opening post?
I reopened it , just in case someone is as noob as i am o.o