VS2015 - 框架和参考 [英] VS2015 - Framework and References
问题描述
我已经开始使用Visual Studio 2015学习GUI C ++编程。我想创建数据库。这就是我必须在"参考"选项中进行一些更改的原因。我添加了MySql.data,但我在解决方案资源管理器中看不到它的结果。我该怎么办
呢?
朋友,
欢迎来到MSDN论坛。
请参阅以下步骤将MySQL数据库连接到您的c ++项目:
打开您的项目 - >属性。- 在配置属性下,打开树状视图。
- 在树状视图中选择 C ++ ,常规。
- 确保Visual Studio可以找到MySQL包含目录。此目录包含在安装MySQL Server时可以选择安装的头文件。
- 在Additional Include Directories文本字段中,添加MySQL include /目录
- 还设置Visual Studio构建应用程序所需的其他库的位置。它们位于MySQL lib / opt目录中,是MySQL Server安装目录的子目录。
- 在树状视图中,打开链接器,常规,附加库目录。
- 将lib / opt目录添加到"附加库目录"文本字段中。这样就可以找到库文件libmysql.lib了。
请参考这里: http://stackoverflow.com/questions/22287335/connecting-mysql-with-cc-sharp-in-visual-studio
与连接不同 MySQL数据库到c#项目。
您能否详细说明您的步骤?
致以最好的问候,
Joyce
Hi,
I've started to learn GUI C++ programming with Visual Studio 2015. I want to create database. That is why I must make some changes in Reference option. I have added MySql.data but i can't see result of it in Solution Explorer. How can I do it?
Hi friend,
Welcome to MSDN forum.
Please see the following steps to connect MySQL database to your c++ project:
- Open your Project->Properties.
- Under Configuration Properties, open the tree view.
- Select C++, General in the tree view.
- Ensure that Visual Studio can find the MySQL include directory. This directory includes header files that can optionally be installed when installing MySQL Server.
- In the Additional Include Directories text field, add the MySQL include/ directory
- Also set the location of additional libraries that Visual Studio needs to build the application. These are located in the MySQL lib/opt directory, a subdirectory of the MySQL Server installation directory.
- In the tree view, open Linker, General, Additional Library Directories.
- Add the lib/opt directory into the Additional Library Directories text field. This enables the library file libmysql.lib to be found.
Please refer to here: http://stackoverflow.com/questions/22287335/connecting-mysql-with-c-c-sharp-in-visual-studio which is different from connecting MySQL database to c# project.
Could you please provide your steps in detail?
Best regards,
Joyce
这篇关于VS2015 - 框架和参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!