VS2015 - 框架和参考 [英] VS2015 - Framework and References

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

问题描述

 


我已经开始使用Visual Studio 2015学习GUI C ++编程。我想创建数据库。这就是我必须在"参考"选项中进行一些更改的原因。我添加了MySql.data,但我在解决方案资源管理器中看不到它的结果。我该怎么办
呢?

解决方案

朋友,


欢迎来到MSDN论坛。


请参阅以下步骤将MySQL数据库连接到您的c ++项目:


  1.       
    打开您的项目 - >属性。
  2. 配置属性下,打开树状视图。
  3. 在树状视图中选择 C ++ 常规
  4. 确保Visual Studio可以找到MySQL包含目录。此目录包含在安装MySQL Server时可以选择安装的头文件。
  5. 在Additional Include Directories文本字段中,添加MySQL include /目录
  6. 还设置Visual Studio构建应用程序所需的其他库的位置。它们位于MySQL lib / opt目录中,是MySQL Server安装目录的子目录。
  7. 在树状视图中,打开链接器,常规,附加库目录。
  8. 将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:

  1.        Open your Project->Properties.
  2. Under Configuration Properties, open the tree view.
  3. Select C++, General in the tree view.
  4. Ensure that Visual Studio can find the MySQL include directory. This directory includes header files that can optionally be installed when installing MySQL Server.
  5. In the Additional Include Directories text field, add the MySQL include/ directory
  6. 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.
  7. In the tree view, open Linker, General, Additional Library Directories.
  8. 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屋!

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