Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 17:02

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

Advertisement



Hilfe bei dll

Discussion on Hilfe bei dll within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 81
Received Thanks: 35
Hilfe bei dll

Hallo Leute wollte mir mal heute eine einfache dll in c++ schreiben die man in den metin2 prozess injeziert und die enter taste drückt.
Kompilieren etc. klappt nur Passiert nix wenn ich die injecte!

PHP Code:
/* 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:
        
keybd_event(VK_RETURN,0x1c,0,0);
        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;

Wo liegt der fehler?

LG lukasa
2fel is offline  
Old 05/26/2011, 17:15   #2
 
xNopex's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471
Welcher Compiler? Evtl. um deiner Antwort vorzugreifen hilft bei bestimmten Compilern folgendes:

Code:
extern "C"
{
    BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)   
    {
        //...
    }
}
xNopex is offline  
Old 05/26/2011, 17:24   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 81
Received Thanks: 35
devc++
2fel is offline  
Old 05/26/2011, 17:43   #4
 
xNopex's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 827
Received Thanks: 471
Das ist zwar eine IDE, aber es erklärt schon so einiges. Du machst jetzt folgendes:

1. Deinstalliere Dev-C++
2. Lade dir folgendes herunter:
3. Installiere das, was du dir hier runtergeladen hast
4. Erstelle ein neues Shared library Projekt (C++)
5. Tue das, was ich dir einen Beitrag zuvor empfohlen habe.
xNopex is offline  
Reply


Similar Threads Similar Threads
HILFE HILFE HILFE MIT SjSro Startproblem
12/14/2009 - SRO Private Server - 4 Replies
Hi Leute hab ein Problem mit SjSro wenn ich auf starten klicke kommt diese Meldung Sorry.Failed to execute Silkroad. bitte helfen hab anti virus aus geht immer noch nicht wo liegt das problem thx schon mal im voraus BITTE HELFEN BITTE WILL UMBEDINGT ZOCKEN!!



All times are GMT +1. The time now is 17:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.