| View previous topic :: View next topic |
| Author |
Message |
relt How do I cheat?
Reputation: 0
Joined: 12 Apr 2023 Posts: 2
|
Posted: Wed Apr 12, 2023 3:10 am Post subject: dllInject failed: failed finding address of msvcrt!_strdup |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Wed Apr 12, 2023 4:48 am Post subject: |
|
|
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 |
|
 |
relt How do I cheat?
Reputation: 0
Joined: 12 Apr 2023 Posts: 2
|
Posted: Wed Apr 12, 2023 4:54 am Post subject: |
|
|
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).
| Description: |
|
| Filesize: |
2.92 KB |
| Viewed: |
1827 Time(s) |

|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Wed Apr 12, 2023 8:00 am Post subject: |
|
|
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 |
|
 |
|