为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

江户川乱折腾 2021-09-19 13:14:25
我现在想调用ffmpeg中的函数,现在已经有了lib,.h和dll,调用没有参数的的函数时没有问题,但是调用有参数的函数时就会出现: error C2197: 'int (__stdcall *)(void)' : too many actual parameters,希望哪位高手能给解决!!在线等待谢谢各位的回答,我已经自己解决了问题!!
查看完整描述

2 回答

?
12345678_0001

TA贡献1802条经验 获得超5个赞

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

查看完整回答
反对 回复 2021-09-23
?
慕容708150

TA贡献1831条经验 获得超4个赞

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

查看完整回答
反对 回复 2021-09-23
  • 2 回答
  • 0 关注
  • 363 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信