Results 1 to 7 of 7
  1. #1
    R3DDOT's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    C://Windows/system32
    Posts
    347
    Reputation
    38
    Thanks
    2,366
    My Mood
    Cheerful

    Reference to a .dll

    Hi guys, I'm having some issues with VB.(I'm not an expert .NET'er, so go easy on me. )
    I have a library that I want to reference, so I can input keystrokes more easily. NOW, it works perfectly, but I must have the dll in the same folder as the executable.
    Is there a way that I can add the dll to resources, (or something like that), so that I'd only need the executable for it to work?
    (The dll used is the "InputSimulator.dll", used in my tutorial of How to make Virtual Keystrokes.)

    I'd really be grateful if anyone could help me out with this. Either way, here's a b0b0.

  2. #2
    Raow's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Location
    47°37′39″N 122°14′32″W
    Posts
    2,720
    Reputation
    140
    Thanks
    594
    Project > Add Reference > Browse (Or select it from the .net if it's there)

    cbf'd adding screenshots, you should know what to do.

  3. #3
    R3DDOT's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    C://Windows/system32
    Posts
    347
    Reputation
    38
    Thanks
    2,366
    My Mood
    Cheerful
    Quote Originally Posted by raow25 View Post
    Project > Add Reference > Browse (Or select it from the .net if it's there)

    cbf'd adding screenshots, you should know what to do.
    XD, I know how to do that. What I meant is:
    To use my application, I need the dll to allways be in the same folder as the app.
    What I want to do(if possible) is to somehow add the dll to the project, and reference it from there, that way I would only need to have the executable.

  4. #4
    leejw29's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    221
    Reputation
    10
    Thanks
    2,756
    I would like to know how this can be done too /:

    For my past projects, I just made it write the dll from resource to the disk when the form loads. And delete it when the form closes.

  5. #5
    GuilhermeBS_VIP1's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    232
    My Mood
    Blah
    i know how do it.. pm me !

  6. #6
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    You can add it to the resources and load it as an assembly using the byte array (I think)

  7. #7
    R3DDOT's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    C://Windows/system32
    Posts
    347
    Reputation
    38
    Thanks
    2,366
    My Mood
    Cheerful
    Quote Originally Posted by Biesi View Post
    You can add it to the resources and load it as an assembly using the byte array (I think)
    Tried it, either way, I found a great packer for .NET executables.(freeware)
    It's very good, no problems so far. Please mark this as /closed & /solved

    BTW, the packer I used was Enigma Protector Virtual Box.

Similar Threads

  1. Morphine.dll + Injec-Tor + Tutorial
    By Papaya in forum Gunz Hacks
    Replies: 21
    Last Post: 10-20-2010, 05:07 PM
  2. .dll injector
    By EleMentX in forum Gunz General
    Replies: 31
    Last Post: 07-08-2010, 10:44 AM
  3. dll for those who cant even google :P
    By jam in forum Gunz Hacks
    Replies: 5
    Last Post: 06-07-2007, 03:32 AM
  4. [HELP]Warrock and DLLs
    By Aecurity in forum WarRock - International Hacks
    Replies: 0
    Last Post: 04-12-2007, 06:38 PM
  5. DLL injection Failled
    By aynal in forum WarRock - International Hacks
    Replies: 1
    Last Post: 01-15-2006, 09:41 PM