将Sqlite3与MFC VS2012集成

Integrating Sqlite3 with MFC VS2012(将Sqlite3与MFC VS2012集成)
本文介绍了将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集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

FastAPI + Tortoise ORM + FastAPI Users (Python) - Relationship - Many To Many(FastAPI+Tortoise ORM+FastAPI用户(Python)-关系-多对多)
Window functions not working in pd.read_sql; Its shows error(窗口函数在pd.read_sql中不起作用;它显示错误)
(Closed) Leaflet.js: How I can Do Editing Geometry On Specific Object I Select Only?((已关闭)Leaflet.js:如何仅在我选择的特定对象上编辑几何图形?)
in sqlite update trigger with multiple if/Case Conditions(在具有多个IF/CASE条件的SQLite UPDATE触发器中)
Android: Why is Room so slow?(Android:为什么Room这么慢?)
Remote Procedure call failed with sql server 2008 R2(使用 sql server 2008 R2 的远程过程调用失败)