[fpc-devel] vargars vs array of const for WinAPI

Martin Frb lazarus at mfriebe.de
Thu Nov 9 20:47:10 CET 2023


I saw that in some places (I think gtk2) "varargs" is used for open 
arrray API calls.

Any reason that is not adapted for Windows (overloaded)?

function wsprintfA(_para1:LPSTR; _para2:LPCSTR; const args:array of 
const):longint; cdecl; external 'user32' name 'wsprintfA';
function wsprintf(_para1:LPSTR; _para2:LPCSTR; const args:array of 
const):longint; cdecl; external 'user32' name 'wsprintfA';



More information about the fpc-devel mailing list