如何编译cpp到一个dll在visual studio 2010 express [英] How to compile a cpp to a dll in visual studio 2010 express

查看:182
本文介绍了如何编译cpp到一个dll在visual studio 2010 express的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个cpp取决于几个头在同一文件夹。我需要编译这个cpp到一个dll。我在Visual Studio 2010 expresS中做了什么?

I have a cpp which depends on couple of headers in the same folder. I need to compile this cpp to a dll. How do I do it in visual studio 2010 expresS?

我在web上找到了几个关于visual studio 2008的文章,但我在2010年无法使用它。赞赏。 Btw,我是一个java程序员。 CPP对我来说是全新的,我正在编译一些别人的cpp到dll。

I found few articles on web for visual studio 2008 but I could not use it in 2010. Any pointers would be highly appreciated. Btw, I am a java programmer. CPP is all new to me, I am compiling some one else's cpp to dll.

谢谢,
Abi

Thanks, Abi

推荐答案

在解决方案资源管理器中右键单击项目,然后选择 Properties ... 。在配置属性 - >一般有一个名为配置类型的选项。如果将其更改为动态库(.dll),您的项目将在生成时生成一个DLL。

Right-click on your project in the Solution Explorer, and select Properties.... Under Configuration Properties -> General there's an option called Configuration Type. If you change it to Dynamic Library (.dll), your project will generate a DLL when it is built.

这篇关于如何编译cpp到一个dll在visual studio 2010 express的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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