我現在想調用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
}
添加回答
舉報
0/150
提交
取消