Results 1 to 15 of 15
  1. #1
    Silk[H4x]'s Avatar
    Join Date
    Jul 2008
    Posts
    45
    Reputation
    10
    Thanks
    102

    *DLL* [Tutorial] Make Your first DLL Interacted to a Form Project...

    Hey Hey Hey! The Following tutorial will show you how to make a DLL and how to interact it to a WindowsFormApplication!
    *Note: The following tutorial will NOT show how to make a hack in a dll, just a simple program... You can start from here learning about dlls, so don't mess me with stupid questions and comments!

    Ok Lets Start...


    -----------------------------------------------------------------
    The Dll
    -----------------------------------------------------------------

    Open Visual Basic, Start a new project, name it to whatever you want and select Class Library, then press OK...

    Now you should see on the right "My Project", Press it...
    Now a new window should appear with many informations about your project, in the Tabs, press "Reference"
    A New window will appear and there is a button named of "Add..."
    Press It!
    A New window appears and there you must search for:
    "System.Windows.Forms" in .NET Tab...
    When you find it, selelect it and press OK...
    Now, go to your DLL File Named of "Class1" that you can find on the right...
    Type the following code on top, upper then "Public Class Class1":
    Code:
    Imports System.Windows.Forms
    Ok now type the following code between "Public Class Class1" and "End Sub":
    Code:
    Public Sub ShowErrorMessage(ByVal TheText As String)
    MsgBox(TheText, MsgBoxStyle.Critical, "Error")
    Now...
    Down of "End Sub" Type the following:
    Code:
    Public Sub AddText(ByVal Box As TextBox, ByVal Text As String)
    Box.Text += Text
    End Sub

    Now it should look like this:
    Code:
    Imports System.Windows.Forms
    Public Class Class1
        Public Sub ShowErrorMessage(ByVal TheText As String)
            MsgBox(TheText, MsgBoxStyle.Critical, "Error")
        End Sub
    
        Public Sub AddText(ByVal Box As TextBox, ByVal Text As String)
            Box.Text += Text
        End Sub
    End Class
    If it looks like that Save your project...
    By going o "File" and Save All... Save to your Desktop or whenever you want... Then (IMPORTANT Build your Project by going to "Build" and "Build (your project name)"



    -----------------------------------------------------------------
    The Form and Dll Interaction...
    -----------------------------------------------------------------


    Now... Start a New Project, name it whatever you want and select WindowsFormApplication1

    In the form add 2 Buttons, and 2 TextBoxs... At the first TextBox Make it as a MultiLine TextBox and make it bigger... The 2nd Textbox let it as it starts...

    Now Go to "My Project" like you did in the DLL Part... And go to "Reference" again, Press "Add..." and go to the "Browse" Tab... There Search for your DLL project, and choose the built project... (bin -> release -> select DLL)

    Press button 1 to go to the code index and type right down of "Public Class Form1" the following:
    Code:
    Dim TheDll As New DLL.Class1
    Go to Form1, and press the button 1, type the following on it:
    Code:
    TheDll.AddText(TextBox1, TextBox2.Text)
    Go back to the form and press the button2 and type the following on it:
    Code:
    TheDll.ShowErrorMessage("Your Message Here")
    At the end it should look like this:

    Code:
    Public Class Form1
        Dim TheDll As New DLL.Class1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TheDll.AddText(TextBox1, TextBox2.Text)
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            TheDll.ShowErrorMessage("Your Text Here")
        End Sub
    End Class
    Save All.... Build Project and it should look like this:


    Your project is done!

    Type anything in the textbox between the 2 buttons, and press Add Text, the text will be added to the bigger textbox... If you press Error Button an Error Mensage will appear with your custom message at the code!

    See? Its Quite Simple, now apply your knowledges and build a hack in a dll!

    Have Fun!
    Last edited by Silk[H4x]; 08-12-2008 at 06:29 AM.

  2. The Following 4 Users Say Thank You to Silk[H4x] For This Useful Post:

    Erinador (10-21-2009),gbitz (08-14-2008),ladyboss011 (01-24-2009),skatebone (03-02-2009)

  3. #2
    gbitz's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    Here.
    Posts
    3,136
    Reputation
    197
    Thanks
    335
    This is great for people who don't know how to implement D3D into C++ or anything. Great tut.

  4. #3
    Silk[H4x]'s Avatar
    Join Date
    Jul 2008
    Posts
    45
    Reputation
    10
    Thanks
    102
    thats why i did this tutorial....

  5. #4
    deve48's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    I have this error " Error 1 Type 'DLL.Class1' is not defined. for this : Public Class Form1
    Dim TheDll As New DLL.Class1

    so is that possible with this little trick bring up a trainer to the forground like d3d hack?

  6. #5
    londasgt's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    To fix the Error for 'Dll.Class1 not being defined...
    Type "Import "Name of your DLL"
    above everything
    without the .dll extension, this'll work as long as you built your DLL project
    and added it into the refrences

  7. #6
    deve48's Avatar
    Join Date
    Nov 2008
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by londasgt View Post
    To fix the Error for 'Dll.Class1 not being defined...
    Type "Import "Name of your DLL"
    above everything
    without the .dll extension, this'll work as long as you built your DLL project
    and added it into the refrences
    thats what I did "
    Code:
    Imports dllinjector2
    Public Class Form1
        Dim TheDll As New DLL.Class1
    dllinjector2 is the name of my dll its is added in to the project from references.

    The problem is still same it says its not declared the DLL.Class1 !

  8. #7
    apezwijn's Avatar
    Join Date
    Feb 2007
    Gender
    male
    Location
    The Netherlands
    Posts
    1,525
    Reputation
    22
    Thanks
    682
    I found out that YouTube is also a good spot for this, HINT*** <<<< ** <<<<

  9. #8
    christokoe's Avatar
    Join Date
    Jun 2007
    Posts
    14
    Reputation
    10
    Thanks
    2
    thank you it realy helped me out :P
    (and your fluffy is out of her egg bij me XD)

  10. #9
    Jianwei's Avatar
    Join Date
    Mar 2008
    Posts
    10
    Reputation
    10
    Thanks
    0
    hey great tut man ! i'm kinda looking forward to make .exe and .dll for my trainer games

    i shall try to train on your tut , next i gonna find way to get opt codes in games

  11. #10
    ladyboss011's Avatar
    Join Date
    Dec 2008
    Posts
    9
    Reputation
    10
    Thanks
    1
    Nice tut, I've been trying to learn this C++ and java script, now I have something i can apply to it

  12. #11
    LaTiNoShAdOw's Avatar
    Join Date
    Feb 2009
    Posts
    2
    Reputation
    10
    Thanks
    1
    Great tutorial dude! Very informative!

  13. #12
    skatebone's Avatar
    Join Date
    Feb 2009
    Posts
    23
    Reputation
    10
    Thanks
    5
    Gratz
    Thanked
    Can you stick this? Its a good tutorial for new people.
    Btw silk can u help me with some hacks some time? I am a very good programmer in vb6 and vb.net 2008. I downloaded your injector in vb6 and edited a little
    If you are free add me on msn or private message me. Tnx ^^

  14. #13
    boyd45's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    behind my lapt0p
    Posts
    88
    Reputation
    10
    Thanks
    20
    My Mood
    Yeehaw
    thanks manits really nice can u make some other dll based tuts to learn more if it
    50+ posts [x]
    100+ posts [ ]
    500+ posts [ ]
    1000+ posts [ ]
    released own hack [x]


    learning C++
    getting better with vb2008

  15. #14
    PlSlYlClHlO's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    52
    Reputation
    10
    Thanks
    2
    Great and Simple, Thanks for this tut

  16. #15
    gunnybunny's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    12
    whats this do?

Similar Threads

  1. [How To] Make your first Warrock hack in C++[>NoMenü<]
    By pwner318 in forum WarRock Hack Source Code
    Replies: 19
    Last Post: 12-08-2010, 06:25 PM
  2. [RELEASE/INFO] CN Tutorial - Making your first CA Hack!
    By CoderNever in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 170
    Last Post: 07-26-2010, 09:11 AM
  3. Replies: 13
    Last Post: 12-28-2009, 01:13 AM
  4. Replies: 28
    Last Post: 03-02-2009, 07:44 AM
  5. [Video tutorial] Make your own css cheats
    By seren1ty in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 6
    Last Post: 09-15-2007, 04:11 PM

Tags for this Thread