> procedure QMCall(subrname: pchar; argc: shortint; rest: array of > const); cdecl; external; > > You can then call it using > > QMCall('test',1,['para1','para2',5,null]); >
My declaration reads like this: procedure QMCall(SubrName : PChar; ArgCount : shortint; Args : array of const); cdecl; external 'QMClient'; However, when I build it, I get an error: QMClient.pas(25,73) Error: Type identifier expected QMClient.pas(25,73) Fatal: Syntax error, ) expected but CONST found I'm using FPC 1.0.10 dated 2003/06/26. tnx! g. -- "I'm not crazy, I'm plausibly off-nominal!" Proud owner of 80-0007 http://www.f15sim.com - The only one of its kind. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal