Lazarus

Free Pascal => Windows => Topic started by: asdf1337 on January 22, 2021, 09:54:36 pm

Title: Automate the generation of Windows API for FPC
Post by: asdf1337 on January 22, 2021, 09:54:36 pm
Hi,
following might be interesting as it could? be used to generate a Windows.pas automatically without errors.

Making Win32 APIs More Accessible to More Languages (https://blogs.windows.com/windowsdeveloper/2021/01/21/making-win32-apis-more-accessible-to-more-languages/)
Title: Re: Automate the generation of Windows API for FPC
Post by: asdf1337 on January 22, 2021, 09:57:58 pm
Might be also interesting for Lazarus IDE for autocompletion? :)
Title: Re: Automate the generation of Windows API for FPC
Post by: MarkMLl on January 22, 2021, 10:09:49 pm
Specifically, https://github.com/microsoft/win32metadata noting that this is distinct from any historical project to define the Windows APIs.

Seems like a good idea to me, particularly since over the last few days one forum thread has been debating Pascal-style var vs MS-style Hungarian Notation. However, I note that it applies to Win-32, and find myself wondering to what extent it also applies to Win-64: if it drives a wedge between attempts to keep the existing Windows API definitions in step it could be counterproductive (is that an evil gurgle from Steve Ballmer I hear in the distance? :-)

MarkMLl
Title: Re: Automate the generation of Windows API for FPC
Post by: PascalDragon on January 23, 2021, 11:39:37 am
Hi,
following might be interesting as it could? be used to generate a Windows.pas automatically without errors.

Making Win32 APIs More Accessible to More Languages (https://blogs.windows.com/windowsdeveloper/2021/01/21/making-win32-apis-more-accessible-to-more-languages/)

Well, looks like even more motivation to get my WinMD importer working. ;)
TinyPortal © 2005-2018