急急急!!!error C2664: 'memcpy' : cannot convert parameter 1 from 'struct _SQLCA::_sqlerrp' to 'void *'
源代码:
定义
struct_sqlerrp
{
charsqlerrpp[3];// Product
charsqlerrpv[2];// Version
charsqlerrpr[2];// Release
charsqlerrpm[1];// Modification
}sqlerrp;// Diagnostic information
调用
memcpy(sqlca.sqlerrp," ",8);
错误提示:
error C2664: 'memcpy' : cannot convert parameter 1 from 'struct _SQLCA::_sqlerrp' to 'void *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.