Op 9-11-2023 om 20:47 schreef Martin Frb via fpc-devel:
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)?
It probably is newer (kylix). I'm not sure anyway what the problem is?
Why would varargs be
Op 9-11-2023 om 20:43 schreef Martin Frb via fpc-devel:
On 09/11/2023 14:19, Marco van de Voort via fpc-devel wrote:
Anyway, standard procedure in such cases is to move the pascallized
declaration to redef.inc and have a pointer value in the original
place. Which I just commited to GIT.
T
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
On 09/11/2023 14:19, Marco van de Voort via fpc-devel wrote:
Anyway, standard procedure in such cases is to move the pascallized
declaration to redef.inc and have a pointer value in the original
place. Which I just commited to GIT.
Thanks. Merge-able?
__
09.11.2023 12:10, Michael Van Canneyt via fpc-devel пишет:
On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote:
03.11.2023 17:34, Michael Van Canneyt via fpc-devel пишет:
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote:
03.11.2023 17:05, Michael Van Canneyt via fpc-devel пишет:
Op 9-11-2023 om 13:59 schreef Martin Frb via fpc-devel:
Fpc defines
function CreateConsoleScreenBuffer(dwDesiredAccess:DWORD;
dwShareMode:DWORD; var lpSecurityAttributes:SECURITY_ATTRIBUTES;
dwFlags:DWORD; lpScreenBufferData:LPVOID):HANDLE; external 'kernel32'
name 'CreateConsoleScreenBuffer'
Fpc defines
function CreateConsoleScreenBuffer(dwDesiredAccess:DWORD;
dwShareMode:DWORD; var lpSecurityAttributes:SECURITY_ATTRIBUTES;
dwFlags:DWORD; lpScreenBufferData:LPVOID):HANDLE; external 'kernel32'
name 'CreateConsoleScreenBuffer';
`lpSecurityAttributes` is a `var` param in the above.
On Thu, 9 Nov 2023, Maxim Ganetsky via fpc-devel wrote:
03.11.2023 17:34, Michael Van Canneyt via fpc-devel пишет:
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote:
03.11.2023 17:05, Michael Van Canneyt via fpc-devel пишет:
On Fri, 3 Nov 2023, Maxim Ganetsky via fpc-devel wrote: