Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Running Bytes Or EXE From Resources

$
0
0
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:

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.

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>