如何将.dll嵌入到我的最终.exe中 [英] How can I embed a .dll into my final .exe

查看:194
本文介绍了如何将.dll嵌入到我的最终.exe中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我开发了一个Windows应用程序,我有一个当前位于dll之外的.dll。如果可能的话,我宁愿以某种方式嵌入.dll,这样我就可以分发应用程序,而不必分发外部.dll。


这是可能的,如果是的话,我该如何去关于这样做?


我正在使用VS.NET(C#)2005


感谢您提供任何帮助,


谢谢,

Cedric

Hello,

I developed an windows application and I have a .dll that currently sits outside the dll. If possible, I would rather embed somehow the .dll so I could distrubute the application without having to distrubute the external .dll.

is this possible, and if so, how do I go about doing this?

I''m using VS.NET (C#) 2005

Thanks for any help you can offer,

Thanks,
Cedric

推荐答案


您好,


我开发了一个Windows应用程序,我有一个.dll,目前位于dll之外。如果可能的话,我宁愿以某种方式嵌入.dll,这样我就可以分发应用程序,而不必分发外部.dll。


这是可能的,如果是的话,我该如何去关于这样做?


我正在使用VS.NET(C#)2005


感谢您提供任何帮助,


谢谢,

Cedric
Hello,

I developed an windows application and I have a .dll that currently sits outside the dll. If possible, I would rather embed somehow the .dll so I could distrubute the application without having to distrubute the external .dll.

is this possible, and if so, how do I go about doing this?

I''m using VS.NET (C#) 2005

Thanks for any help you can offer,

Thanks,
Cedric



你试图添加参考

have u tried to add reference


是的,


这不是问题。问题是最终输出是我有.exe和外部.dll。我希望能够将.dll嵌入到.exe中,所以当我分发应用程序时,我只有1个.exe而不是2个文件(.exe和.dll)
yes,

Thats not the issue. The issue is the final output is that I have the .exe and the external .dll. I want to be able to embed the .dll into the .exe so when I distrubute the app, I only have the 1 .exe and not 2 files (.exe and the .dll)



yes,


这不是问题。问题是最终输出是我有.exe和外部.dll。我希望能够将.dll嵌入到.exe中,所以当我分发应用程序时,我只有1个.exe而不是2个文件(.exe和.dll)
yes,

Thats not the issue. The issue is the final output is that I have the .exe and the external .dll. I want to be able to embed the .dll into the .exe so when I distrubute the app, I only have the 1 .exe and not 2 files (.exe and the .dll)



在这种情况下,您必须在该应用程序的任何类模块中编写代码

in such case u''ve to write the code in any classmodule of that application


这篇关于如何将.dll嵌入到我的最终.exe中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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