Call function with default argument from .dll with c++

前端 未结 2 1428
春和景丽
春和景丽 2021-01-21 23:37

I have a function defined in the Header of my .dll

void calculo(vector A, vector B, double &Ans1, double jj);

in t

2条回答
  •  臣服心动
    2021-01-22 00:27

    Try add standard parameter value to function pointer type declaration:

    typedef void(_stdcall *f_funci)(vector A, vector B, double &Ans1, double jj = 36.5);

    Default argument value is part of function signature, compiler does not put it into function code.

提交回复
热议问题