本文介绍了如何将代码注入.NET Windows Forms应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想向程序集中注入一些代码,例如{Windows窗体应用程序} 我认为mono.cecil是有用的参考工具,但我不能用它:( 我要向Win Forms应用程序注入的代码是:
i want to inject some code into assemblies such as { windows forms application } i think mono.cecil is a useful reference tool ,but i can''t work whit it :( my code i would to inject to a win forms application is :
public class Program { static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new myloginForm()); } }
thanks.
推荐答案嗨.(萨拉姆) 您可以使用CodeDOM在其他应用程序的运行期间创建,构建和运行应用程序.您将需要学习它.请从这里开始: LINK [ ^ ] Hi.(salam) You can create, build and run an application during run time of your other application using CodeDOM. You will need to learn it. Please start here: LINK [^]
嗨[Salam :) ] 感谢您的答复,但我想使用mono.cecil,因为我有时间学习CodeDOM mono.cecil是更好的方法(一种快速的方法). Hi [ Salam :) ] Thanks for reply but i want to use mono.cecil becuase i dot have time to learn CodeDOM mono.cecil is a better ( a fast way to do it ) .
请阅读本文(使用Mono.Cecil进行高级代码注入) www.dotnetsharp/Forums/dispbbs.aspx?i=2007& j = 434 [ ^ ] 我要为Win Forms应用程序执行此操作. Please read this article ( Advanced Code Injection with Mono.Cecil ) www.dotnetsharp/Forums/dispbbs.aspx?i=2007&j=434[^] i want do this for a win forms application .
更多推荐
如何将代码注入.NET Windows Forms应用程序
发布评论