Results 1 to 4 of 4
  1. #1
    jonnyHS's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive

    Question Add files in a proyect?

    can i add an executable file to the resources of a VB.NET project? and if possible you can run it from the resources?

    Thanks

  2. #2
    Geometrical's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Location
    In the middle of nowhere.
    Posts
    1,034
    Reputation
    331
    Thanks
    10,335
    My Mood
    Chatty
    Guess using Google is too difficult.. look here at MSDN.

  3. #3
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    To run net assemblies from your resources

    Code:
    Dim a As Assembly = Assembly.Load(My.Resources.BYTEARRAY)
    Dim method As MethodInfo = a.EntryPoint
    Dim o As Object = a.CreateInstance(method.Name)
    method.Invoke(o, Nothing)
    Last edited by Biesi; 01-07-2014 at 06:26 AM.

  4. #4
    leejw29's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    221
    Reputation
    10
    Thanks
    2,756
    Add your file to resources, write it to a directory then run it? (:

Similar Threads

  1. whare to add rez files...
    By roman56 in forum CrossFire Mods & Rez Modding
    Replies: 1
    Last Post: 07-08-2010, 03:44 AM
  2. How To add Files into our Posts???
    By Rido in forum Spammers Corner
    Replies: 1
    Last Post: 06-23-2010, 06:34 PM
  3. [Release] Add .mpgh file support in your injector!
    By Samueldo in forum Visual Basic Programming
    Replies: 7
    Last Post: 05-16-2010, 02:09 AM
  4. Add in LTB files from different games?
    By iGlitchFoolz in forum Combat Arms Mod Discussion
    Replies: 6
    Last Post: 03-08-2010, 09:54 PM
  5. How to add an attachment file and how to make CA hacks.
    By Klumzy in forum Programming Tutorial Requests
    Replies: 2
    Last Post: 07-15-2009, 12:52 PM