Hello People!
I searched for several hours about how to run an EXE from Resources, Memory but i dint have any sucess
Here is my code:
Error:
Não foi possível carregar o ficheiro ou assemblagem(Not possible to load file or assembly) '4370432 bytes loaded from WindowsApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or respective. Foi efectuada uma tentativa de carregar um programa com um formato incorrecto. (Was tried to load the program with a incorrect format)
Cumpz.
Aprecciate the help.
I searched for several hours about how to run an EXE from Resources, Memory but i dint have any sucess
Here is my code:
Dim a As System.Reflection.Assembly = System.Reflection.Assembly.Load(My.Resources.granny 'Name of The exe') Dim method As System.Reflection.MethodInfo = a.EntryPoint Dim o As Object = a.CreateInstance(method.Name) method.Invoke(o, New Object(0) {"1"})
Error:
Não foi possível carregar o ficheiro ou assemblagem(Not possible to load file or assembly) '4370432 bytes loaded from WindowsApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or respective. Foi efectuada uma tentativa de carregar um programa com um formato incorrecto. (Was tried to load the program with a incorrect format)
Cumpz.
Aprecciate the help.