Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows API functions

Tags:

windows

winapi

Are they standard code c or c++ code? what are they?

like image 678
user32233 Avatar asked Oct 21 '25 03:10

user32233


1 Answers

The original Win32 API is C-based. There are however a substantial number of services within Windows that are COM based. Good examples are the clipboard, drag+drop, the shell, the user mode driver framework, DirectX. While it is technically possible to write COM code in C, it is excruciatingly painful to do so.

Realistically you use C++ there. And a C++ class library to make the original C-based API less painful, especially for GUI code.

like image 57
Hans Passant Avatar answered Oct 23 '25 20:10

Hans Passant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!