关于调用dll中的多个函数的问题!!!

来源:百度知道 编辑:UC知道 时间:2024/05/17 04:54:21
我现在想调用ffmpeg中的函数,现在已经有了lib,.h和dll,调用没有参数的的函数时没有问题,但是调用有参数的函数时就会出现: error C2197: 'int (__stdcall *)(void)' : too many actual parameters,希望哪位高手能给解决!!在线等待
谢谢各位的回答,我已经自己解决了问题!!

参数匹配 链接库中函数的原型 和实参调用的不一致
'identifier' : too many actual parameters

The specified function was called with too many parameters, or the function declaration was incorrect.

The following is an example of this error:

void func( int );
main()
{
func( 1, 2 ); // error, two actual parameters
}

too many actual parameters这句话的意思是有太多的实际参数

你自己看下是不是参数类型不匹配或者填写了更多的参数

希望对你有帮助

仔细查看.h头文件导出函数原型声明,使用DLL函数一般都是用函数指针来搞的。