var
hEventArray :array of Borland.Delphi.Windows.THandle;
F_ThreadMaxNumber := 10;
SetLength(hEventArray, F_ThreadMaxNumber + 1);
for I:=0 to F_ThreadMaxNumber do
hEventArray[I]:=Borland.Delphi.Windows.CreateEvent(nil,false,false,'');
// ...... 一些创建线程的操作
Borland.Delphi.Windows.WaitForMultipleObjects(F_ThreadMaxNumber+1,hEventArray,true,Borland.Delphi.Windows.INFINITE); // 这个编译不通过
// 错误信息 : Incompatible types: "UInt32[]*" and "UInt32[]"
在X3中 WaitForMultipleObjects 中的 hEventArray 这个参数应该怎么写? |