Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 Main - Discussions / Questions > CO2 Programming
You last visited: Today at 21:50

  • Please register to post and access all features, it's quick, easy and FREE!


VC++ DLL - Injecting doesn't work... or does it?

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 762
Received Thanks: 539
VC++ DLL - Injecting doesn't work... or does it?

Don't bother to read this thread unless you are interested in C++, or you know C++.

I have written a C++ DLL using Visual C++ (didn't use .NET), it does some detours (that's it's main purpose.)

On my PCs, if I inject into an application it works just fine same for another person, but for a third person, it doesn't.
My injector returns successful when it injects but, by the time the injection is done (guess) the process dumps the DLL(as in it's not part of the process and I can rename, delete w/e to the DLL I wanted to inject).
I added a logger to it and in DllMain I tried to write in a file "Hello world." flush and close but it didn't get that far.

All three PCs got Windows 7, mine and the person's that it doesn't work on have both x64 version.
The injector is ran as Administrator and all have C++ Redistributable packages installed.
Yes, I've set the MFC to static.

Any ideas...anyone?



-impulse- is offline  
Old 02/01/2012, 15:48   #2
 
elite*gold: 0
Join Date: Apr 2008
Posts: 752
Received Thanks: 276
maybe because it dependencies on your OS DLL files try this:

Code:
your project properties > Configuration Properties > C/C++ > Code Generation > Runtime Library (change it to "Multi-Threaded Debug (/MTd)
build it again and test it , it may work .


Mr_PoP is offline  
Thanks
1 User
Old 02/01/2012, 15:54   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 762
Received Thanks: 539
Quote:
Originally Posted by Mr_PoP View Post
maybe because it dependencies on your OS DLL files try this:

Code:
your project properties > Configuration Properties > C/C++ > Code Generation > Runtime Library (change it to "Multi-Threaded Debug (/MTd)
build it again and test it , it may work .
Why MTd and not MD?
-impulse- is offline  
Old 02/01/2012, 16:03   #4
 
elite*gold: 0
Join Date: Apr 2008
Posts: 752
Received Thanks: 276
Quote:
Originally Posted by -impulse- View Post
Why MTd and not MD?
MD
Quote:
Causes your application to use the multithread- and DLL-specific version of the run-time library. Defines _MT and _DLL and causes the compiler to place the library name MSVCRT.lib into the .obj file.

Applications compiled with this option are statically linked to MSVCRT.lib. This library provides a layer of code that allows the linker to resolve external references. The actual working code is contained in MSVCR100.DLL, which must be available at run time to applications linked with MSVCRT.lib.

also it use Debug on internal software that is not shipped to customers. The debug runtime library *can't* be included with your application legally. Just to be clear, you *can* ship a debug version of your application to a customer, but it should use the *release* version of the runtime library.
MTD
Quote:
Defines _DEBUG and _MT. This option also causes the compiler to place the library name LIBCMTD.lib into the .obj file so that the linker will use LIBCMTD.lib to resolve external symbols.

The Debug runtime library gives you access to some helpful debugging aids for error reporting and tracking down memory leaks.
/MD, /MT, /LD (Use Run-Time Library)


Mr_PoP is offline  
Thanks
1 User
Old 02/01/2012, 16:21   #5
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,198
Have you solved the problem yet? Missing DLLs should give you a warning, at least that's what I've experienced.
IAmHawtness is offline  
Old 02/02/2012, 18:14   #6
 
elite*gold: 0
Join Date: Oct 2009
Posts: 762
Received Thanks: 539
Quote:
Originally Posted by IAmHawtness View Post
Have you solved the problem yet? Missing DLLs should give you a warning, at least that's what I've experienced.
It's not a missing DLL problem ...
Anyway I am not sure I am waiting for that person. It might be solved.
In case it wasn't fixed I will bump the thread.

BUMP.

Thank you all for contributing. Problem solved.
In case you want a dll to work for everyone else, other than yourself,
1. Make sure MFC to static
2. Make sure the Runtime Library is set to MTd.


-impulse- is offline  
Reply



« [C++ & C#] gProxy Source | Question in autoit ! »

Similar Threads
Need help with injecting
09/04/2011 - Wolfteam - 6 Replies
Hello people, i know im not german but i have a question, i looked on manny sites for an injector only no 1 worked for me:( i have windows vista home premium 64 bits. can some1 help me? thanks
Help by injecting
10/01/2010 - Combat Arms Hacks, Bots, Cheats & Exploits - 3 Replies
Some people say their hacks dont work but you always can use Gordon 1.4.0 You dont need to have an account for it. Just download gordonsys loader, open it and than u see login screen. But above login screen there are some tabs, click on injector, type by process Engine.exe click on pick library, choose your .dll file fill in by delay 0 (or 1000) click on stealth injection, (If u want to keep this settings click on Add library) click inject, And enjoy playing, (srry for my bad english)...
[Question] preX Injecting doesnt seem to work??
01/09/2010 - S4 League - 1 Replies
preX injector doesnt seem to work for me when i open de program it closes immidiatly and when i use the one from alastor my whole system freezes can anyone help me...my system runs on <Windows XP SP3> and cracked client doesnt seem to work either for me keep getting failed to connect to authentication server(Timeout) but when i put original back it works perfectly again i have been trying for myself like 6hours by reading the instructions but i cant seem to figure it out i hope...
trouble injecting
01/24/2008 - GunZ - 1 Replies
hi i've been having trouble injecting dll's into gunz. Everytime i inject a dll and select a server on the server select screen it says "Cannot Connect to Server" and after a while it says something about hacking attempt and closes Gunz. When i try to log back into gunz it tells me i have to reboot. It gets annoying after a while because i have rebooted my computer 10-20 times and only gotten the hacks to work about 3-4 times. I'm using InjecTOR and using God Mode.dll and Dark Destruction.dll....



All times are GMT +1. The time now is 21:50.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.