我在声明DLL的时候发现函数的参数与VB的关键字相同,比如
int CMPP_Query(int conn_id,char *date,unsigned char type,char *service,struct Query_Res *p_res);
里面的*date和type两个参数,在VB里面声明为 byref date as string,byval type as integer的时候提示date和type两个地方出错,请问怎么声明才不会出错?谢谢了本人刚来这里,分数不多,10分送上
int CMPP_Query(int conn_id,char *date,unsigned char type,char *service,struct Query_Res *p_res);
里面的*date和type两个参数,在VB里面声明为 byref date as string,byval type as integer的时候提示date和type两个地方出错,请问怎么声明才不会出错?谢谢了本人刚来这里,分数不多,10分送上
举例子:这个声明中 Alias 后面的才是真正的函数名 Lib 前面的函数名可以自己改。