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 


Can anyone compile some C++ into a .dll? ADDED SOURCE!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Sat May 31, 2008 3:03 am    Post subject: Can anyone compile some C++ into a .dll? ADDED SOURCE! Reply with quote

I will +rep/-rep w/e you want.
If you have C++ and you want to compile it I will PM the code and +/-rep you.

Thanks in advance.
IT SHOULDNT BE BOTLAND C++ because it gives an error about a .dll missing.

If there are any small compilation errors/bugs in the code please get them out, i had to use plain notepad and it took me 20 minutes to get all bugs out. (Sad)


Code:
#include <windows.h>

#define AMMO    0x6EF0D3
#define MAXAMMO 0x6EF0D2
#define RELOADTIME 0x6E3168
#define RELOADTIMEE 0x6EF0D4
#define STARTTIME 0x6EF0EE
#define FIRERATE 0x6EF0CE


void start_it();

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
   DWORD ThreadId;

   if (fdwReason == DLL_PROCESS_ATTACH)
      CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&start_it, 0, 0, &ThreadId);

   return TRUE;
}

void start_it()
{
//VK_MENU = ALT KEY!!!!
     MessageBox (0, "Soldat .dll\n                           ", "Visit from www.flashtrainers.gaylosers.org!", MB_ICONINFORMATION);
     int b, n, j, f, y, m;
     b=1;n=0;j=0;f=0;y=0;m=0;
   for(;;SleepEx(150, 0))
   {
       if(GetAsyncKeyState(VK_MENU) &0x8000){
      if(GetAsyncKeyState('U')&0x8000) { if (m) {m=0;if(b)MessageBeep(MB_ICONHAND);}else{ m=1;if(b)MessageBeep(MB_ICONEXCLAMATION);}
         *(BYTE*)AMMO ^= 38885;
         *(BYTE*)MAXAMMO ^= 46308;
      }



      if(GetAsyncKeyState('I')&0x8000){if (f){ f=0;if(f)MessageBeep(MB_OK);}else{ f=1;if(b)MessageBeep(MB_ICONEXCLAMATION);} *(BYTE*)FIRERATE ^= 3;}
      if(GetAsyncKeyState('O')&0x8000){if (j){ j=0;if(j)MessageBeep(MB_OK);}else{ j=1;if(b)MessageBeep(MB_ICONEXCLAMATION);} *(BYTE*)STARTTIME    ^= 1;}
      if(GetAsyncKeyState('Y')&0x8000){if (n){ n=0;if(n)MessageBeep(MB_OK);}else{ n=1;if(b)MessageBeep(MB_ICONEXCLAMATION);}}
     if(GetAsyncKeyState('P')&0x8000){if (y){ n=0;if(y)MessageBeep(MB_OK);}else{ y=1;if(b)MessageBeep(MB_ICONEXCLAMATION);}}
        if(GetAsyncKeyState('L')&0x8000){return;}
        if(GetAsyncKeyState('K')&0x8000){
                     if(b) MessageBeep(MB_ICONHAND);
                     if(n){         *(BYTE*)AMMO ^= 38885;
                           *(BYTE*)MAXAMMO ^= 46308; m=0;}
                     if(j){*(BYTE*)STARTTIME    ^= 1; j=0;}
                if(f){*(BYTE*)FIRERATE    ^= 3; j=0;}
                     if(n){n=0;}}
                if(y){y=0;}}
    }
    if(n){*(BYTE*)AMMO ^= 38885; *(BYTE*)MAXAMMO ^= 46308; SleepEx(175, 0); *(BYTE*)AMMO ^= 38885; *(BYTE*)MAXAMMO ^= 46308;}
   if(y){*(BYTE*)RELOADTIME ^= 1; *(BYTE*)RELOADTIMEE ^= 1; SleepEx(175, 0); *(BYTE*)RELOADTIME ^= 1; *(BYTE*)RELOADTIMEE ^= 1;}
         
   }
}

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel


Last edited by Haxory' on Sat May 31, 2008 12:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
bartil
Advanced Cheater
Reputation: 0

Joined: 11 Jul 2006
Posts: 91

PostPosted: Sat May 31, 2008 3:12 am    Post subject: Reply with quote

I'll give it a try Very Happy
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat May 31, 2008 7:34 am    Post subject: Reply with quote

Just post it?
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Mussy69
Grandmaster Cheater
Reputation: 0

Joined: 09 Mar 2007
Posts: 842
Location: Sydney

PostPosted: Sat May 31, 2008 8:50 am    Post subject: Reply with quote

That would be alot easier
_________________
Back to top
View user's profile Send private message AIM Address
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Sat May 31, 2008 12:25 pm    Post subject: Reply with quote

added source guys
_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat May 31, 2008 12:29 pm    Post subject: Reply with quote

There are errors, and you're coding is too sloppy for me to fix it. You have very bad coding habits...
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Sat May 31, 2008 12:33 pm    Post subject: Reply with quote

Sorry, I am really bad at C++ i am only used to AS(2)

AND I had to use notepad T.T

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Sat May 31, 2008 12:33 pm    Post subject: Reply with quote

He'd be able to fix it if it was his
EDIT:
ROFLMFAO! I remember those if statements! Good times

EDIT:
attached
Just had to change
Code:
                if(y){y=0;}}
     
    if(n){*(BYTE*)AMMO ^= 38885; *(BYTE*)MAXAMMO ^= 46308; SleepEx(175, 0); *(BYTE*)AMMO ^= 38885; *(BYTE*)MAXAMMO ^= 46308;}
   if(y){*(BYTE*)RELOADTIME ^= 1; *(BYTE*)RELOADTIMEE ^= 1; SleepEx(175, 0); *(BYTE*)RELOADTIME ^= 1; *(BYTE*)RELOADTIMEE ^= 1; }
                                                                                    }     
   }



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________


Last edited by HalfPrime on Sat May 31, 2008 12:53 pm; edited 5 times in total
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat May 31, 2008 12:35 pm    Post subject: Reply with quote

Suggestion, don't put everything on single lines. New lines are your friend. You are missing some open and close braces and have some where they shouldn't be. Go back through the code and redo things so they are clean and correct.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat May 31, 2008 12:35 pm    Post subject: Reply with quote

@ me or @ haxory? The only reason I can't fix it is because the coding style is so weird that I can't tell where anything is. And it's one of those weird misplacement errors, but I can't find where to place anything because of how it's written. Btw, @ haxory, just dl notepad++.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat May 31, 2008 12:37 pm    Post subject: Reply with quote

oib111 wrote:
@ me or @ haxory? The only reason I can't fix it is because the coding style is so weird that I can't tell where anything is. And it's one of those weird misplacement errors, but I can't find where to place anything because of how it's written. Btw, @ haxory, just dl notepad++.


Was for haxory.

@Haxory: As well, how come you cannot compile this yourself? There are tons of free compilers on the net for C/C++ as well as the express editions of Visual Studio. You should be able to find one that works for your needs.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Sat May 31, 2008 12:45 pm    Post subject: Reply with quote

Yep, that might be true
But another guy compiled it but it had a .dll missing

EDIT: It is fucky code because it is based on two old gunz .dll's it is to bypass anti cheat software

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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