如何打开dll文件.. [英] How to Open dll file ..

查看:189
本文介绍了如何打开dll文件..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

我想在系统中打开.dll文件,并想通过C#进行一些更改,请帮助我如何打开它...



请一定要做....


在此先感谢....



问候:

解决方案

您可以反汇编.NET汇编(忘记DLL和EXE -对于.NET,这实际上是相同的;嗯,EXE有一个入口点,通常Main和DLL可能有也可能没有;仅此而已; EXE可以完全像DLL一样被引用为一个库,在某些情况下甚至可以这样做.
请参见MSIL反汇编程序(Ildasm.exe), http://msdn.microsoft .com/en-us/library/f7dy01k1%28v = VS.100%29.aspx [ http://msdn.microsoft.com/zh-cn/library/496e4ekx%28v=VS.100%29.aspx [ http://wiki.sharpdevelop.net/ilspy.ashx [ ^ ].

使用System.Reflection反射" DLL并不是太困难,但是如果完整则要反汇编……要难得多得多.

—SA


尽管SAKryukov完全正确,但值得一看的是 解决方案

You can disassemble .NET Assembly (forget DLLs and EXEs — for .NET this is practically the same; well, EXE has an entry point, usually Main and DLL may or may not have one; that''s it; EXE can be referenced as a library exactly as DLL, there are cases when it''s even practical to do so).

See MSIL disassembler (Ildasm.exe),
http://msdn.microsoft.com/en-us/library/f7dy01k1%28v=VS.100%29.aspx[^].

When you disassemble the assembly in IL code, you can modify it and assemble again using MSIL assembler (Ilasm.exe), see http://msdn.microsoft.com/en-us/library/496e4ekx%28v=VS.100%29.aspx[^].

Reflector is a powerful tool, but you can have another tool free of charge: Open Source ILSpy, http://wiki.sharpdevelop.net/ilspy.ashx[^].

It''s not too difficult to "reflect" DLL using System.Reflection, but to disassemble if in full… much, much harder.

—SA


While SAKryukov is entirely right — it''s worth looking at http://www.mono-project.com/Cecil[^] [URL fixed — SA] if you really need to do this.

Best regards
Espen Harlinn


Hello Friend...


1) For Reading dll file you need to download a .NET Reflector
using Reflector you can read the dll file but if it is not encrypted you can read that or if it is encrypted you can not read that file...

2) for modifying a code of dll you can not modify that code of dll, but if it is your own generated dll then you can modify your code and regenerate that dll, but in existing dll you can not modify that..


这篇关于如何打开dll文件..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆