Integrating Sqlite3 with MFC VS2012

若如初见. 提交于 2019-12-13 04:27:33

问题


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.

So kindly let me know the steps.

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

Thanks in advance.

Thanks,Selva


回答1:


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.

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

Thank you.



来源:https://stackoverflow.com/questions/15440220/integrating-sqlite3-with-mfc-vs2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!