Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Compiling Error


    Maxn
     Share

    Recommended Posts

    OK, now I tried the one from ZeaS.

     

    Just one CPP file... But now I get this error :S

    I've added the Addys... but I get an error while compiling :S

     

    this code

     

    mainsource.cpp

    #include <stdio.h>
    #include <windows.h>
    
    DWORD *ingame= (DWORD*)0x004E66D0;
    
    void Stamina()
    {
    if(*ingame) //check if we are ingame.. prevent crashs
    {
    	DWORD *stam= (DWORD*)0x004E66D0;
    	DWORD *stam2= ( DWORD* )((*stam) + 0x2A4);
    	*(float*)stam2 = (float)100;
    }
    }
    void cheatThread()
    {
    for(;;)
    {
    	Stamina();
    	Sleep(21); //prevent for overloading the cpu
    }
    }
    BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    if(dwReason == DLL_PROCESS_ATTACH)
    {
    	CreateThread(0, 0, (LPTHREAD_START_ROUTINE)cheatThread, 0, 0, 0); //create the cheatthread
    }
    return TRUE;
    }

     

    dll.h

    #ifndef _DLL_H_
    #define _DLL_H_
    
    #if BUILDING_DLL
    # define DLLIMPORT __declspec (dllexport)
    #else /* Not BUILDING_DLL */
    # define DLLIMPORT __declspec (dllimport)
    #endif /* Not BUILDING_DLL */
    
    
    class DLLIMPORT DllClass
    {
     public:
    DllClass();
    virtual ~DllClass(void);
    
     private:
    
    };
    
    
    #endif /* _DLL_H_ */

     

    dllmain.cpp

    /* Replace "dll.h" with the name of your header */
    #include "dll.h"
    #include <windows.h>
    
    DllClass::DllClass()
    {
    
    }
    
    
    DllClass::~DllClass ()
    {
    
    }
    
    
    BOOL APIENTRY DllMain (HINSTANCE hInst	 /* Library instance handle. */ ,
    				   DWORD reason		/* Reason this function is being called. */ ,
    				   LPVOID reserved	 /* Not used. */ )
    {
    switch (reason)
    {
      case DLL_PROCESS_ATTACH:
    	break;
    
      case DLL_PROCESS_DETACH:
    	break;
    
      case DLL_THREAD_ATTACH:
    	break;
    
      case DLL_THREAD_DETACH:
    	break;
    }
    
    /* Returns TRUE on success, FALSE on failure */
    return TRUE;
    }

     

    Now get this error:

     dllcrt2.o C:\Users\Max\Desktop\D3D Test\3rd\ld No such file: No such file or directory. 
     C:\Users\Max\Desktop\D3D Test\3rd\Makefile.win [Build Error]  [D3D3.dll] Error 1

     

    It seems like I coded nothing wrong, just get an error with compiling :S

     

    any1 knows what this error means ?

     

    Greets

    Edited by ~Maxn~
    Link to comment
    Share on other sites

    I dont know why u have dll.h and dllmain.h

    I only used 1CppFile.cpp

    And remove ingame you dont need it too

    Link to comment
    Share on other sites

    You would know if you wernt trying to cut corners, go learn c++ and dont waste people time with simple shit you could know yourself

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...