本来想着利用CString strname读取编辑框中输入的数据库名,然后再通过
sqlite3 *db = NULL;
char *zErrMsg = 0;
int rc;
rc = sqlite3_open(strname , &db);
来打开或创建一个数据库。
但是发现 不能将参数 1 从“CString”转换为“const char *”
话说,const char *是字符常量的指针吗?sqlite3_open()怎么动态地输入数据库名称然后打开?
sqlite3 *db = NULL;
char *zErrMsg = 0;
int rc;
rc = sqlite3_open(strname , &db);
来打开或创建一个数据库。
但是发现 不能将参数 1 从“CString”转换为“const char *”
话说,const char *是字符常量的指针吗?sqlite3_open()怎么动态地输入数据库名称然后打开?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货