Dll injection.. Failing bigtime menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    xzidez's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    136
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dll injection.. Failing bigtime

    Hi.

    So faar ive using ASM code cave for all my LUA calls. But its just so ugly and clumpsy so I decided to go with DLL injection instead.
    However.. I fail so horrible at writing the DLL. Been sitting all day and cant figure out what im doing wrong.
    Im using VC++
    Code:
    #include "stdafx.h"
    
    #include <windows.h>
    #include "Injector.h"
    #include <stdio.h>
    #include <stdlib.h>
    
    BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
    {
        switch (reason)
        {
            case DLL_PROCESS_ATTACH:
            MessageBox (NULL, L"DLL Injected!\n", L"DLL Injected!\n", MB_ICONINFORMATION);
            break;
        }
        return TRUE;
    }
    When I inject this i get get some funny debug error

    Debug Error!

    Program C:\etc\etc

    R6033
    -Attempt to use MSIL code from this assembly during native code initialization
    This indicates a bug in your application. It´s most likley the result of calling an MSIL-Compiled (/clr) function from a native constructor or from DllMain.


    Anyone who have seen this before and mind translating this to english?

    Dll injection.. Failing bigtime
  2. #2
    ziinus's Avatar Member
    Reputation
    2
    Join Date
    Nov 2008
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you must compile without clr (Common language runtime ) support.
    You can find this option in your project properties.
    Last edited by ziinus; 06-02-2009 at 03:41 PM.

  3. #3
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You couldn't figure this out from the blatant stating of what was wrong?

  4. #4
    xzidez's Avatar Member
    Reputation
    12
    Join Date
    Dec 2007
    Posts
    136
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No Im sorry lanman i couldn tfigure this out from the blantant instant. Ive been sitting with this stupid Linker problems. And once I solved them I got this.

    Im a complete retard at c++. Perhaps thats what makes everything complicated... but well thanks to you ziinus

  5. #5
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Protip: Learn the language before you attempt to program in it.

    Obvious shit is obvious. ****, I feel like I'm a teacher at one of those "special" schools and I have to spell out every single little detail.

Similar Threads

  1. [WoW] [C++] Hack Loader (DLL Injection Example)
    By Cypher in forum WoW Memory Editing
    Replies: 28
    Last Post: 07-06-2010, 11:41 PM
  2. [Tutorial] DLL Injection
    By jagged software in forum Programming
    Replies: 22
    Last Post: 04-21-2009, 03:27 AM
  3. DLL injection with windows SP3
    By Therrm in forum World of Warcraft Bots and Programs
    Replies: 3
    Last Post: 12-06-2008, 03:03 PM
  4. What are the risks with DLL injection?
    By object in forum WoW Memory Editing
    Replies: 14
    Last Post: 08-22-2008, 09:23 PM
  5. [Help] WoWMe - Injection Failed.
    By fetch21 in forum WoW ME Questions and Requests
    Replies: 14
    Last Post: 04-18-2008, 10:46 PM
All times are GMT -5. The time now is 08:06 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search