如何创建一个dll文件 [英] How to create a dll file
问题描述
使用Visual Studio 2005
Using Visual Studio 2005
我的类文件的列表,当我尝试运行的类文件,其示值误差为 与类库输出类型的项目不能直接启动
I have list of class files, when i try to run the class files, it showing error as "a project with output type of class library cannot be started directly"
如何运行的类文件?如何创建一个dll文件。
How to run the class file? How to create a dll file.
是新来的Visual Studio 2005
Am new to visual studio 2005
需要帮助?
推荐答案
A 类库
就是这样,对code库,你需要创建一个应用程序引用库来尝试一下。
在相同的解决方案,只需添加一个新的项目作为一个WinForms应用程序,然后在WinForms应用程序项目中添加引用类库项目。
A Class Library
is just that, a library of code, you need to create an application that references the library to try it out.
In the same solution, just add a new project as a Winforms Application and then in the winforms application project add a reference to the class library project.
然后,您应该能够调用库的方法,从应用程序code。
You should then be able to call the methods in the library from the application code.
这篇关于如何创建一个dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!