[fpc-pascal]Variable argument counts...

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Sep 19 22:33:09 CEST 2004


On 19 sep 2004, at 22:34, Gene Buckle wrote:

> 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

Sorry, it should be


procedure QMCall(SubrName : PChar; ArgCount : shortint; const Args : 
array of
const); cdecl; external 'QMClient';

(i.e., another "const" in front of "Args").


Jonas





More information about the fpc-pascal mailing list