Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 11:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++] Odd error when building the solution

Discussion on [C++] Odd error when building the solution within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
[Rokudo]'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 399
Received Thanks: 353
[C++] Odd error when building the solution

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 :




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
[Rokudo] is offline  
Old 08/18/2014, 17:57   #2
 
elite*gold: 0
Join Date: Aug 2012
Posts: 236
Received Thanks: 94
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?
Tasiro is offline  
Old 08/18/2014, 18:47   #3
 
[Rokudo]'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 399
Received Thanks: 353
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 ?
[Rokudo] is offline  
Old 08/18/2014, 20:07   #4
 
elite*gold: 0
Join Date: Aug 2012
Posts: 236
Received Thanks: 94
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.
Tasiro is offline  
Thanks
1 User
Old 08/18/2014, 20:20   #5
 
[Rokudo]'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 399
Received Thanks: 353
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 :?
[Rokudo] is offline  
Old 08/20/2014, 14:03   #6

 
Delinquenz's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,160
Received Thanks: 232
Quote:
#Solved
Why did you delete your opening post?
Delinquenz is offline  
Old 08/20/2014, 16:24   #7
 
[Rokudo]'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 399
Received Thanks: 353
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
[Rokudo] is offline  
Reply


Similar Threads Similar Threads
c9 error solution ?
01/03/2013 - SRO Private Server - 4 Replies
Ok so i have a lan game server runing i wanna make it wan -i have a modem -no-ip 4 my DNS -SR server running (LAN IP ) -ports oppen -firewall off (for test) but wen i log in from another computer outside my network i get error C9
Name in use error. No solution
07/20/2012 - Shaiya Private Server - 3 Replies
I have just made a new server and i have come across a name in use error whenever trying to make a toon. This is the ONLY bug im experiencing this is the quiry i used to try and fix it USE GO drop procedure . GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS ON GO
Error C9 trying everything... Who knows the solution?
11/29/2011 - SRO Private Server - 5 Replies
I have the problem of the C9... because not know I opened all the ports in the same pc and the router Pic 1# Port Open " PC " http://img444.imageshack.us/img444/4853/sinttulow e.png
Need solution for bot error. please help me.
06/05/2011 - SRO Private Server - 0 Replies
Heya. I lost hope. Recently, I purchased HoLy bot for SWSRO 2 server. Bought it, everything works fine, a couple of days ago, I wasn't able to login into the bot, first, I put inside the bot my login information, then the bot turns all white, and crash. Someone is able to help? I posted it also at HOLY bot forums but it appears that no one gives a shit in that forum except money -related issues. long story short, I know this forum is not really related to holy bot, but I have to find...
Critical Error (F*C*1nG) error - Solution WIN7???
10/25/2010 - RF Online - 1 Replies
why THE HELL in windows 7 this error is so idiot?? in other OS you get critical error, relog and its ok... but in win7, its fucking annoying.... my char is stucked in ELAN!!! 2 days that i tried to log in and when i select my char i get critical error.... ¬¬ ¬¬ ¬¬ ¬¬ win7 x64 - ati radeon 5650 - 4gb ram



All times are GMT +1. The time now is 11:12.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.