MySQL 1045权限错误 的解决:
GRANT ALL PRIVILEGES ON *.* TO test_user@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
libJson(Jsoncpp),够用了.
C++:
extern "C" LIB_MESCLIENT_API int nw_save_prodmade_data(const char* jo_in);
Json::Value jo;
jo["row"]["product_id"] = "21265";
jo["row"]["product_sn"] = 223456789012345678;
int error_code = nw_save_prodmade_data(jo.toStyledString().c_str());
C#下用Newtonsoft.Json也挺好用的
using Newtonsoft.Json.Linq;
JObject jo = new JObject();
jo["row"] = new JObject();
//此部分在dll内部会插入到可追溯状态表 nw_sn_status
jo["row"]["product_id"] = "12\r\n3\"12'\"65"; //产品ID
StringBuilder row = new StringBuilder(jo.ToString());
int error_code = nw_save_prodmade_data(row);