如何将代码注入.NET Windows Forms应用程序

编程入门 行业动态 更新时间:2024-10-19 18:16:31
本文介绍了如何将代码注入.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应用程序

本文发布于:2023-11-07 23:00:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567676.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   应用程序   代码   NET   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!