我得到一个dell库,和它的头文件;现在我想重新封装一下,要把一些参数类型和函数名字改一下,我具体是这样做的
RSA300_ReturnStatus RSA300_Search(long deviceIDs[], short* deviceSerial[], int* numDevicesFound)
{
wchar_t**p=(wchar_t**)deviceSerial;
return (RSA300_ReturnStatus) RSA300_API::Search(deviceIDs , p, numDevicesFound);
}
参数short* deviceSerial[]是我改的类型,而参数wchar_t*pl[]是原来库函数的类型;编译也成功了,也生成了相应的dell,但是在调用重新封装的库函数的时候
比如:
int _tmain(int argc, _TCHAR* argv[])
{
double* iqSampleRate;
long id;
long deviceIDs[20]={NULL};
short* deviceSerial[20]={NULL};
int* numDevicesFound={NULL};
RSA300_ReturnStatus rs=RSA300_Search(deviceIDs,deviceSerial,numDevicesFound);
}
vs2010编译器反馈的是找不到RSA300_Search函数。。。。。这是怎么回事,望大神指导一下,(一些函数,我只是把名字改了,参数没改的函数却能正常调用)