摘要: 1.CString 转 string //第一种方式 CString str = _T("Hello wrold"); USER_CONVERSION; std::string s(W2A(str)); //第二种方式 CString str = _T("Hello wrold"); std::st 阅读全文
posted @ 2020-04-25 22:49 文泰来 阅读(679) 评论(0) 推荐(0)
摘要: 使用C API 1.通过调用 mysql_library_init() 来初始化MySql库 2.通过调用 mysql_init()来初始化一个链接句柄 3.使用SQL语句操作数据库,并处理这些结果 4.通过调用 mysql_close() 来关闭MySql服务器的链接 5.通过调用 mysql_l 阅读全文
posted @ 2020-04-25 22:26 文泰来 阅读(228) 评论(0) 推荐(0)