c#windows窗体中的自定义DLL

c#windows窗体中的自定义DLL

问题描述:

嗨亲爱的...

我想要我的c#app,能够为自己的用户创建自定义DLL。

现在,如何使用c#中的app创建自定义DLL Windows窗体?

请帮助我!

坦克。

Hi dears...
I want my c# app , ability to create custom DLL for self user.
now , How to create custom DLL with app in c# windows form?
plz help me!
Tanks.

在.NET中,基本上有没有DLL或非DLL,只有程序集和模块。模块是由于构建而创建的真实工件,它们是PE文件: http://en.wikipedia.org/wiki/Portable_Executable [ ^ ]。



和.EXE或.DLL不再是名称的一部分。使用应用程序类型对象库时,将创建.DLL文件,否则它是.EXE文件,该文件必须具有入口点( Main )。这基本上都是。 .EXE文件可以完全用作.DLL:由其他程序集引用或在运行时加载。该库只是没有入口点的程序集,而不仅仅是更少。



要使用Visual Studio设置此应用程序类型,请参阅项目属性,第一个选项卡(应用)。裸C#编译器具有适当的命令行选项;跑去看看。



-SA
In .NET, essentially, there are no DLLs or non-DLLs, there are just assemblies and modules. Modules are real artifacts created as a result of the build, they are PE files: http://en.wikipedia.org/wiki/Portable_Executable[^].

And .EXE or .DLL is no more then the part of the names. When you use application type "Object Library", the .DLL file is created, otherwise it is an .EXE file, which must have an entry point (Main). That's basically all. The .EXE file can be used exactly as a .DLL: referenced by other assemblies or loaded during run-time. The library is just the assembly without the entry point, not more not less.

To set this application type with Visual Studio, see project properties, very first tab ("Application"). The bare C# compiler has appropriate command-line options; run it to see.

—SA