如何声明代默认参数的函数?
我用vc做了一个dll导出一个api,最后一个参数可省,请问在delphi中如何声明?
这是原来的声明:
function Test(strCode:PChar; nVID, nPID, nInfo: Integer): Integer; stdcall;
现在要在后面加上一个参数 strPara:PChar,这个参数在调用的时候可以省略,默认为空字符串,即VB中的String "",请问在pascal中如何声明,最好给出修改后的完整test函数的声明:
function Test(strCode:PChar; nVID, nPID, nInfo: Integer,。。。。。): Integer; stdcall;