如何创建VC ++项目的DLL? [英] How to create DLL of VC++ project?

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

问题描述

我已经使用Visual Studio 2008开发了VC ++项目,现在我想制作这些项目的dll文件.

那么,我该怎么做呢?
其次,我想使用C#将Dll应用于ASP.NET,我该怎么做?

有人可以帮我吗?
请.

I had develop VC++ project using Visual Studio 2008, and now i want to make dll file of these project.

So, How can i make it?
And secondly i want to use that Dll into ASP.NET using C#, How can i do these?

Can any one help me?
Please.

推荐答案

第一个问题很明显,请创建一个dll项目.当然,导出方法不是那么简单.第二部分意味着您必须使用p/invoke,除非您更改第一部分的方式.逻辑上要做的是创建一个COM dll并将其导入,但是您也可以创建一个带有C ++/CLI层的dll,让您使用.NET导入它.
The first question is obvious, create a dll project. Exporting methods is not so simple, of course. The second half means that you''d have to use p/invoke, unless you change how you do the first part. The logical thing to do is create a COM dll and import it, but you could also create a dll with a C++/CLI layer that lets you import it using .NET


Hey !!

谢谢你的回答.我已经尝试过了,但是存在内存拼写问题.
Hey!!

Thanks for the answer. i already tried it, but there is problem of memory likage.


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

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