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 


dllInject failed: failed finding address of msvcrt!_strdup

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

Joined: 12 Apr 2023
Posts: 2

PostPosted: Wed Apr 12, 2023 3:10 am    Post subject: dllInject failed: failed finding address of msvcrt!_strdup Reply with quote

Hi yall, I have a dll i want to inject into a source engine game. The dll works on my main pc, but for some reason, it does not work on my laptop. LoadLibraryA returns null, and when i try to inject it with cheat engine, it shows this error message:
Code:
dllInject failed: Failed injecting the DLL
Force load module failed:failed finding address of msvcrt!_strdup


My OS is Windows 11 Home Edition 25314.1010.
The DLL and game are 32 bit, the injection is successful on other machines, but not on this one.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Apr 12, 2023 4:48 am    Post subject: Reply with quote

Perhaps you are missing some of the dlls it needs ? e.g the c debug runtime ?
_________________
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
relt
How do I cheat?
Reputation: 0

Joined: 12 Apr 2023
Posts: 2

PostPosted: Wed Apr 12, 2023 4:54 am    Post subject: Reply with quote

msvcrt.dll is loaded already!
I found out that the import is successful when i try to import it with LoadLibraryExA and the flags are set to 1, but then the dll is imported incorrectly and it crashes when i try to call any function from it (`call mydll.dll+HEX` will point to HEX like mydll.dll address was 0).



ProcessHacker_mnmBMklwYM.png
 Description:
 Filesize:  2.92 KB
 Viewed:  1829 Time(s)

ProcessHacker_mnmBMklwYM.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Apr 12, 2023 8:00 am    Post subject: Reply with quote

perhaps the dll is compiled to use msvcrtd.dll instead

this is why I recommend static linking the runtime instead

_________________
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