VS2017 C++ 读取sqlite数据库专题

1、解决中文路径名的问题

     sqlite文件路径包含中文,无法打开

解决方法,参考《sqlite3打开带有中文名称的路径的文件》http://blog.sina.com.cn/s/blog_825ad93f0102xotr.html

需要增加如下两个包含文件

#include "fileapi.h"
#include "windows.h"

  但编译时会出现 um\winnt.h(154): fatal error C1189: #error:  "No Target Architecture"

参考 https://blog.csdn.net/sqn614/article/details/71105053/  ,增加预编译选项 _X86_ ,即可以编译成功

posted on 2021-10-08 15:13  xihong  阅读(281)  评论(0)    收藏  举报

导航