如何创建一个dll文件创建一个、文件、dll

2023-09-05 02:19:07 作者:寂寞的宣泄品

使用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.