C++的定义long SetActiveMultiGramma(const char* pMultiGrammar,const int nMGNum, const int* pFlagpass , const int nFlag);
我转的Delphi的定义function SetActiveMultiGramma(const pstr: pchar; const nMGNum: integer; var pFlagpass: Integer; const nFlag: Integer): longint; stdcall; external JTASR_DLL;
大家看看,第3个参数,转的是否正确?
如果正确的话,嘿嘿
继续往下看
我声明了一个    nFlagPass: Array[0..2] of Integer;然后调用的时候      nRes := jASR_SetActiveMultiGramma(PChar(strGrmPath), 3, @nFlagPass, nType + 1);就报第三个参数有问题
[Pascal Error] UtestMain.pas(157): E2033 Types of actual and formal var parameters must be identical各位DX,小弟是Delphi新手啊,这个问题怎么解决
谢谢了。