请教大佬,关于调用dll中的多个函数的问题!

我现在想调用ffmpeg中的函数,现在已经有了lib,.h和dll,调用没有参数的的函数时没有问题,但是调用有参数的函数时就会出现: error C2197: 'int (__stdcall *)(void)' : too many actual parameters,希望哪位高手能给解决!!在线等待
谢谢各位的回答,我已经自己解决了问题!!

江户川乱折腾
浏览 369回答 2
2回答

12345678_0001

参数匹配 链接库中函数的原型 和实参调用的不一致'identifier' : too many actual parametersThe 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}

慕容708150

仔细查看.h头文件导出函数原型声明,使用DLL函数一般都是用函数指针来搞的。
打开App,查看更多内容
随时随地看视频慕课网APP