如何创建dll文件 [英] how to create dll file

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

问题描述

大家好


我想创建DLL文件,请告诉我如何使用Visual Studio创建

解决方案

,并创建一个类库项目并进行构建. /blockquote>

创建一个类库项目,选择所需的语言(C#,vb ...),编写所需的任何逻辑,然后通过右键单击解决方案来构建该库,即可获得该dll的项目位于项目的bin文件夹中.

它们是在发布模式/调试模式下构建项目的两个选项.部署时最好选择发布模式



查看这些链接
http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx [ ^ ]


DLL reuse code的一种好方法.

无需在创建的每个程序中重新实现这些例程,只需编写一次即可,然后从需要该功能的应用程序中引用它们:
创建和使用动态链接库 [ ^ ]
如何:创建和使用C#DLL(C#编程指南) [ ^ ]

构建DLL [如何创建DLL [ 解决方案

Using Visual Studio, Create a class library project and build it.


create a class library project choose the languag whatever you want (C#,vb...)write whatever logic you want then build that library by right clicking the solution you can get the dlls of that project in bin folder of your project.

their are two option to build the project in release mode/ debug mode. it will always better to chose release mode when you are going to deploy

or

see these links
http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx[^]


DLLs is a great way to reuse code.

Rather than re-implementing these routines in every program you create, you write them once and reference them from applications that need the functionality:
Creating and Using a Dynamic Link Library [^]
How to: Create and Use C# DLLs (C# Programming Guide)[^]

Building DLLs[^]
How to create DLLs[^]


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

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