Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


memcpy not working well

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
RSShady
How do I cheat?
Reputation: 0

Joined: 29 Dec 2018
Posts: 7

PostPosted: Sat Dec 29, 2018 1:00 pm    Post subject: memcpy not working well Reply with quote

Soo...
I was trying to change a value in a program using memcpy in a c++ dll.
It write the value in the address but the value dont change in the program.
The weird thing is: if i change the value using cheat engine (just open the value changer and press ok lol) the value change in the program.
Can anyone help me?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4718

PostPosted: Sat Dec 29, 2018 9:40 pm    Post subject: Reply with quote

You might need to use VirtualProtect to make the destination writable.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
RSShady
How do I cheat?
Reputation: 0

Joined: 29 Dec 2018
Posts: 7

PostPosted: Sun Dec 30, 2018 5:20 am    Post subject: Reply with quote

ParkourPenguin wrote:
You might need to use VirtualProtect to make the destination writable.

Thanks to answer!
Aleardy tried and dont work, the value change in the offset, i saw thr changed value on CE, but dont change in the program.
The value only change in program if i change value through CE.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sun Dec 30, 2018 5:38 am    Post subject: Reply with quote

are you sure its your dll?
whatever, if you have the source code, and you do understand c++:

https://forum.cheatengine.org/viewtopic.php?t=608274

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
RSShady
How do I cheat?
Reputation: 0

Joined: 29 Dec 2018
Posts: 7

PostPosted: Sun Dec 30, 2018 9:00 am    Post subject: Reply with quote

OldCheatEngineUser wrote:
are you sure its your dll?
whatever, if you have the source code, and you do understand c++:

Thanks Anyone i figure ou the problem (EXE jut got corrupted a simple reinstall orked).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites