Hacker News new | ask | show | jobs
by asalahli 114 days ago
Can't you do the same in C? You don't really need any headers, you can just declare function prototypes yourself
1 comments

Of course you can, but it's more cumbersome in C as you also need to link to the DLL, hence the import library. In Delphi, it's all controlled from the function definition.

But of course most of the Windows APIs were already provided in the Windows unit. Oftentimes with Pascalish wrappers.