创建一个DLL [英] Create a DLL

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

问题描述

 我是Pete Hepple。赢10 64b。 Visual Studio 2010。

 Hi, I'm Pete Hepple. Win 10 64b. Visual Studio 2010.

在网上查看有关如何创建DLL的信息。

Looked all over the web for info on how to create a DLL.

有几个项目,并希望从这个库中提取一些常用的子/函数。

Have several projects and would like to extract some common Subs/Functions to this library.

如果你给出简单明了的话,那将是有义务的说明。!

Would be obliged if you'd give simple and explicit instructions.!

项目  A /进口MyLib

Project  A / imports MyLib

项目B /进口MyLib

Project B / imports MyLib

MyLib.DLL

MyLib.DLL

进口......

进口......

谢谢,期待

Pete

推荐答案

您好Arthurltis,

Hi Arthurltis,

感谢您在此发帖。

对于你的问题,你想用什么语言的dll?

For your question, what language you want to used for dll?

如果你想为C#做这个,你可以尝试以下步骤。

If you want to doing this for C#, you could try the steps below.

1。创建一个C#类bilrary并添加一些方法来生成dll。

1. Create a C# Class bilrary and add some method to generate the dll.

2。项目A / B添加此dll的参考。

2. Project A/B add reference of this dll.

3。通过实例调用方法dll的类。

3. Call the method via instance the class of the dll.

如果你想用C ++制作dll并用C#调用,你可以尝试下面链接中的步骤。

If you want to make the dll in C++ and call in C#, you could try the steps in the link below.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/dbafec35-0759-4dde-9048-d1c0c80a2ffb / use-managed-c-class-library-with-c?forum = netfxbcl#2ad16543-0272-4e30-b0b4-617207408921

最诚挚的问候,

Wendy


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

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