在VC中不支持C的指针类型语法?怎么办?解决好了给100分
在VC6编译时出现下面的错误
error C2664: 'Base64' : cannot convert parameter 1 from 'const char *' to 'unsigned char []'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
是这样的:
有这样的函数
void Base64(unsigned char chasc[3],unsigned char chuue[4])
做这样的应用:
Base64(psmtpinfo->UserName + i * 3, buf + i * 4);
psmtpinfo类型:
typedef struct _SMTPINFO
{
char SmtpSrvName[32];
char Port[7];
char UserName[16];
char Password[16];
char From[32];
char To[32];
char Subject[32];
char *msg;
}SMTPINFO;