如何将代码注入.NET Windows Forms应用程序 [英] How to inject code to a .net windows forms application
本文介绍了如何将代码注入.NET Windows Forms应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想向.net程序集中注入一些代码,例如{Windows窗体应用程序}
我认为mono.cecil是有用的参考工具,但我不能用它:(
我要向Win Forms应用程序注入的代码是:
i want to inject some code into .net 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进行高级代码注入)
http://www.dotnetsharp.com/Forums/dispbbs.aspx?i=2007& j = 434 [ ^ ]
我要为Win Forms应用程序执行此操作.
Please read this article ( Advanced Code Injection with Mono.Cecil )
http://www.dotnetsharp.com/Forums/dispbbs.aspx?i=2007&j=434[^]
i want do this for a win forms application .
这篇关于如何将代码注入.NET Windows Forms应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文