問題描述
我正在開發小型 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集成的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!