[fpc-pascal]Variable argument counts...
Gene Buckle
geneb at deltasoft.com
Sun Sep 19 22:34:48 CEST 2004
> 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.
More information about the fpc-pascal
mailing list