调用 c/c++ dll的有关问题

调用 c/c++ dll的问题
C/C++ 

int E1K_AO_Writes( int hConnection, 

BYTE bytStartChannel, 

BYTE bytCount, 

double dValue[ ]); 


dephi要怎么写 
function E1K_AO_Writes():integer;stdcall;external 'MXIO.dll';

------解决方案--------------------
大概是这样吧
function E1K_AO_Writes(hConnection :integer; bytStartChannel,bytCount :Byte; dValue :array of double):integer;stdcall;external 'MXIO.dll';