求助,关于strcpy_s的简单问题
在vc2005有 #define deptNo_LEN 2 + 1;SQLCHAR deptNo[deptNo_LEN ];
strcpy_s(deptNo,deptNo_LEN, "D5");
结果报错,错误信息是 error C2664: 'errno_t strcpy_s(char *,rsize_t,const char *)' : cannot convert parameter 1 from 'SQLCHAR [3]' to 'char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
是怎么回事呢,好像是跟vc2005默认unicode编码有关吧??