Recent

Author Topic: Automate the generation of Windows API for FPC  (Read 1699 times)

asdf1337

  • Jr. Member
  • **
  • Posts: 56
Automate the generation of Windows API for FPC
« 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

asdf1337

  • Jr. Member
  • **
  • Posts: 56
Re: Automate the generation of Windows API for FPC
« Reply #1 on: January 22, 2021, 09:57:58 pm »
Might be also interesting for Lazarus IDE for autocompletion? :)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Automate the generation of Windows API for FPC
« Reply #2 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Automate the generation of Windows API for FPC
« Reply #3 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

Well, looks like even more motivation to get my WinMD importer working. ;)

 

TinyPortal © 2005-2018