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 


Cheat Engine dll Injection Failing

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
IcyYaoi
Newbie cheater
Reputation: 0

Joined: 07 May 2019
Posts: 11

PostPosted: Fri Jul 26, 2019 12:45 pm    Post subject: Cheat Engine dll Injection Failing Reply with quote

I recently started trying to learn how to use dll injection. I have a very basic script that simply shows an alert window that it is loaded but when I load it via the memory view>Inject DLL I get the error Included in the attached image. Is this something I am doing wrong? Something I can fix? Or should I look into creating a custom dll injector?


failed.png
 Description:
The error
 Filesize:  3.85 KB
 Viewed:  12614 Time(s)

failed.png



_________________
Nothing Works And Nobody Knows Why
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25806
Location: The netherlands

PostPosted: Fri Jul 26, 2019 1:53 pm    Post subject: Reply with quote

compile your dll in release mode so it doesn't rely on the vc debug runtime (or tell it to static link)

and pick an easy target proces like the ce tutorial
and make sure that for a 32 bit tatget your dll must be compiled for 32 bit and if the target is 64 bit the dll must be 64 bit

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
IcyYaoi
Newbie cheater
Reputation: 0

Joined: 07 May 2019
Posts: 11

PostPosted: Fri Jul 26, 2019 3:51 pm    Post subject: Reply with quote

I went ahead and remade and then recompiled the script, this time making sure that it was in x64 released mode but got hit with another error, so I tried it on the x64 tutorial and it stop responding for a while then returned with an error that said it took "longer than 10 seconds to execute." Im not entirely sure I understand how this works. Is there a better guide or an existent thread I can take a look at rather than the here and there scraps of youtube videos I've been trying to learn from.
_________________
Nothing Works And Nobody Knows Why
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25806
Location: The netherlands

PostPosted: Sat Jul 27, 2019 3:21 am    Post subject: Reply with quote

in visual studio debug the dll and set as host target the ce tutorial

then use CE to inject the dll and then debug where you think it goes wrong

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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