pb调用vc函数问题
我想在pb中调用个函数,如下:
unsigned WINAPI SingleDES( char DESType, //1加密,2解密
unsigned char * SingleDESKey, //8字节密钥
unsigned int SourDataLen, //数据长度
unsigned char *SourData, //8字节数据,不足补8000
unsigned char *DestData)
{
return theApp.m_Cardwork.SingleDES(DESType,SingleDESKey,SourDataLen,SourData,DestData);
}
pb中函数定义如下:
function long SingleDES(char DESType,ref string SingleDESKey,long SourDataLen,ref string SourData, ref string DestData) library 'DragonICCard.dll';
但是运行时总是出现
Application terminated
Error:Bad runtime function reference at line 7 in clicked event of ovject cb_4 of w_jncpul
的错误。
我觉得应该是函数参数类型有问题,但却整不出来,请高手指点