简体   繁体   English

从现有的Visual Studio C ++项目创建DLL

[英]Create DLL From Existing Visual studio C++ project

I have a c++ project developed in visual studio. 我有一个在visual studio中开发的c ++项目。 The project which is currently .exe depends on external libs (xerces c++ and system C libraries). 当前.exe的项目依赖于外部库(xerces c ++和系统C库)。 I now need to create a dll file (taking into account all the external libraries if possible). 我现在需要创建一个dll文件(如果可能的话考虑所有外部库)。

  1. Is there a way to convert the existing project into a dll (a tool) ? 有没有办法将现有项目转换为DLL(工具)?
  2. If I need to create a dll project from the scratch (which is crazy cos the project is large :( ) what happens to the external libs - ie will a user need to configure those lib before using my dll? 如果我需要从头开始创建一个dll项目(这是疯狂的cos项目很大:()外部库发生了什么 - 即用户是否需要在使用我的dll之前配置这些lib?

Thanks guyz for your help 谢谢guyz的帮助

You can change the Configuration Type in the General page of the project properties. 您可以在项目属性的“ General页面中更改“ Configuration Type ”。 Select Dynamic Library (.dll) . 选择Dynamic Library (.dll) The library projects can be consumed as before. 可以像以前一样使用库项目。

If you need to keep the .EXE project you have to make copy, of course. 如果你需要保留.EXE项目,你当然需要复制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM