
07-13-2005, 06:23 PM
|
|
Regular
|
|
Join Date: Feb 2004
Posts: 91
|
|
Loading an Assembly
|
I've got this code to start a manage assembly:
Code:
Dim asm As System.Reflection.Assembly = System.Reflection.Assembly.Load(GetRawBytes(FilesList.FocusedItem.Index, m_Path))
asm.EntryPoint.Invoke(Nothing, Nothing)
I need to do it like this because I have a file that contains a bunch of stuff, and only a fraction of that file contains the bytes of a managed assembly. The problem is when i try to use this code i just get an error.
Is there a better way to execute an exe by its bytes?
The last way I want to do this is by having to write the bytes to a file and then executing the file.
|
|