I can read an exe from resource and run it from memory without writing on disk (aka RunPE).
My application is a win32 Console.
I can run other win32 console but
1.gui applications only run on memory of other gui applications.as well cui application only run on memory of other cui application. because cui application on new windows run by conhost and not direct.
2.for run .net application from memory in c++ you must repair import table and other thing.to run .net application from .net is simply with
Assembly Lasm = Assembly.Load(bin);
MethodInfo method = Lasm.EntryPoint;
object obj = Lasm.CreateInstance(method.Name);
method.Invoke(obj, null);