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 


MSVCP140 error when injecting dll

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

Joined: 09 Jan 2023
Posts: 4

PostPosted: Mon Jan 09, 2023 7:57 pm    Post subject: MSVCP140 error when injecting dll Reply with quote

Hi! I'm trying to inject a dll in another process and I'm having this error;

"dllInject failed: Failed injecting the DLL
Force load module failed:failed finding address of MSVCP140!?_Winerror_map@std@ @YAHH@Z"

I'm using windows 11 x64 (but other people made it work with the same OS) and I encounter this issue with any dll i'm trying to inject. I already tried reinstalling every vcredist redistribuables.

Anyone encountered this? Any idea to fix this?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Jan 09, 2023 9:29 pm    Post subject: Reply with quote

compile your dll with static runtime linking instead of dynamic/dll
_________________
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
Lurkan
How do I cheat?
Reputation: 0

Joined: 09 Jan 2023
Posts: 4

PostPosted: Mon Jan 09, 2023 10:56 pm    Post subject: Reply with quote

I didn't compile this dll myself, I got it off a forum. Seems to work for everyone else. Am I supposed to recompile it somehow?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Jan 10, 2023 12:13 am    Post subject: Reply with quote

in that case dll injection has failed.
could be you miss the correct runtime version or your anti virus is protecting you from dll injection

_________________
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
Lurkan
How do I cheat?
Reputation: 0

Joined: 09 Jan 2023
Posts: 4

PostPosted: Tue Jan 10, 2023 9:16 am    Post subject: Reply with quote

I've installed every runtime from 2005 to 2022 (the vcredist). How can I miss anything?

I'm using windows defender only. I've been turning protection off but still nothing. I have no clue what to try honestyl
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue Jan 10, 2023 11:01 am    Post subject: Reply with quote

Is the dll in a folder where the game has read access and is the dll also readable and executable for that game?

try running the game as admin

try running ceregreset.exe and then start CE and then try

_________________
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
Lurkan
How do I cheat?
Reputation: 0

Joined: 09 Jan 2023
Posts: 4

PostPosted: Tue Jan 10, 2023 12:31 pm    Post subject: Reply with quote

Just tried this. I reset CE, started the game as admin (with the dll in the game folder next to the .exe, should have read privileges) and I still have this error message...
Back to top
View user's profile Send private message
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