这个错误怎么解决?
//rs为CDaoRecordSet类
rs.SetFieldValue("sex",dlg.sex);
这里sex为bool常量。
为何出现如下错误?
D:\mywork\program\AppBook\AppBookView.cpp(361) : error C2664: 'SetString' : cannot convert parameter 1 from 'int' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
应该如何解决?