如何打开dll文件.. [英] How to Open dll file ..
本文介绍了如何打开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完全正确,但值得一看的是 ^ ] [URL固定— SA],如果您确实需要这样做的话.
最好的问候
Espen Harlinn
你好朋友...
1)要读取dll文件,您需要下载.NET Reflector
使用Reflector,您可以读取dll文件,但如果未加密,则可以读取该文件;如果已加密,则不能读取该文件...
2)对于修改dll的代码,您不能修改该dll的代码,但是如果它是您自己生成的dll,则可以修改您的代码并重新生成该dll,但是在现有的dll中,您不能进行修改. >
Dear all
I want to open .dll file in my system and want to make some changed through C#, please help me how can i open it ...
Please do it needfully....
thanks in advance....
regards:解决方案You can disassemble .NET Assembly (forget DLLs and EXEs — for .NET this is practically the same; well, EXE has an entry point, usuallyMain
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 usingSystem.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屋!
查看全文