将Sqlite3与MFC VS2012集成 [英] Integrating Sqlite3 with MFC VS2012

查看:56
本文介绍了将Sqlite3与MFC VS2012集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发小型 MFC VC++ 应用程序.为此,我需要将 Sqlite3 与现有的 MFC 应用程序集成.

Im developing small size MFC VC++ app. For that i need to integrate Sqlite3 with existing MFC app.

我在网上冲浪,发现了一些对我不起作用的教程.

I surfed net and found some tutorials which are not working for me.

请告诉我步骤.

PS:我已经从 sqlite.org 网站下载了源代码、库和 dll.并且我使用的是 VS2012.

PS: i have downloaded source code and libs and dll from sqlite.org website. and Im using VS2012.

提前致谢.

谢谢,塞尔瓦

推荐答案

我的 VS2012 配置成功.这些是我遵循的步骤.1.从sqlite web下载sqlite3.dll、sqlite3.h、sqlite3.exp和sqlite3.def.2. 使用 LIB 命令从 .def 文件创建 sqlite3.lib.导航到 vs 2012 安装/bin 以找到 LIB 文件以运行命令.3.在vs2012工作区新建一个项目,将sqlite3.h、sqlite3.exp和sqlite.lib复制到你的项目文件位置.4.在任何驱动器上创建一个新文件夹并复制dll、lib和exp.5.右键单击->项目的属性并将dll文件夹添加为附加库.就是这样.

I configured my VS2012 successfully. These are the steps i have followed. 1.Download sqlite3.dll,sqlite3.h,sqlite3.exp and sqlite3.def from sqlite web. 2.create sqlite3.lib from .def file using LIB command. Navigate to vs 2012 installation /bin to find LIB file to run the command. 3.Create a new project in vs2012 workspace and copy the sqlite3.h,sqlite3.exp and sqlite.lib to your project files location. 4.create a new folder any of your drive and copy the dll,lib and exp. 5.Right click->properties of your project and add the dll folder as the additional libraries. thats it.

您已准备好在 cpp 文件中编写包含 sqlite3.h 的 sqlite.

Your ready to program sqlite including sqlite3.h in cpp files.

谢谢.

这篇关于将Sqlite3与MFC VS2012集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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