--------------------------- example16_2 --------------------------- No value given for one or more required parameters.//(表示mdb数据库中没有匹配的字段)
//CString SQL = "select * from employees order by ???? desc"; // ????4个问号的位置就是放的查询字段,必须要数据里面有相同的字段匹配,否则就no value given报错。
--------------------------- OK ---------------------------
--------------------------- Microsoft Visual C++ Runtime Library ---------------------------
Runtime Error!
Program: D:\vcxptest\16-2installation package\example16_2.EXE
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. --------------------------- OK
解决方法:
当数据库里面是中文类容,XP系统是英文版本,则会报错。
可在控制面板,语言选项-高级-选择Chinese(PRC),问题解决。