問題描述
我正在開發(fā)小型 MFC VC++ 應(yīng)用程序.為此,我需要將 Sqlite3 與現(xiàn)有的 MFC 應(yīng)用程序集成.
Im developing small size MFC VC++ app. For that i need to integrate Sqlite3 with existing MFC app.
我在網(wǎng)上沖浪,發(fā)現(xiàn)了一些對我不起作用的教程.
I surfed net and found some tutorials which are not working for me.
請告訴我步驟.
PS:我已經(jīng)從 sqlite.org 網(wǎng)站下載了源代碼、庫和 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 文件創(chuàng)建 sqlite3.lib.導(dǎo)航到 vs 2012 安裝/bin 以找到 LIB 文件以運(yùn)行命令.3.在vs2012工作區(qū)新建一個項(xiàng)目,將sqlite3.h、sqlite3.exp和sqlite.lib復(fù)制到你的項(xiàng)目文件位置.4.在任何驅(qū)動器上創(chuàng)建一個新文件夾并復(fù)制dll、lib和exp.5.右鍵單擊->項(xiàng)目的屬性并將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.
您已準(zhǔn)備好在 cpp 文件中編寫包含 sqlite3.h 的 sqlite.
Your ready to program sqlite including sqlite3.h in cpp files.
謝謝.
這篇關(guān)于將Sqlite3與MFC VS2012集成的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!