+ 3
Windows API, C++
I am learning how to use Windows API with C++ (not C). I started to read Windows' doc but I would like a course about it to make sure I understand (I think it's one of the worst API to learn... 😑) If you know some good websites...
8 Réponses
+ 8
I highly recommend the def reference on the Win32 api by Petzold...even though it's in C you can easily make a C++ wrapper around it. free pdf here:
https://www.google.ca/url?sa=t&source=web&rct=j&url=http://vulms.vu.edu.pk/Courses/CS410/Downloads/Charles%2520Petzold%2520-%2520Programming%2520Windows%2520-%25205th%2520Ed.pdf&ved=0ahUKEwitsc6em9TVAhWIxIMKHafkA1gQFghNMAU&usg=AFQjCNFMBTvQU9z-ZKxcO3kXuAaIQSAiyg
+ 4
https://docs.microsoft.com/en-gb/cpp/windows/walkthrough-creating-windows-desktop-applications-cpp
+ 3
It's a massive API. Tutorials would depend on what exactly you want to use the API for
+ 2
This is my most recent public code with a Windows API call; it's a small bit so if the surrounding code is a bore I can try to separate it.
https://code.sololearn.com/cyt3z1m2z69Q/?ref=app
line 43 I include windows.h
line 60-63 I call the API (to get the file size) then clean up*
* very important when calling into the API...clean up everything you allocate. You should also be error-checking. I omit it here because I didn't think it had utility for anyone.
+ 1
Of course it is...
I would like an introduction, only an introduction, I think I'll be able to learn lonely after
+ 1
@Jay I knew the first link (Microsoft) I started to read (very well-documented)
But I didn't know the second one. It looks cool thanks !
I kept looking for other introductions and I found these links:
In C++
http://bob.developpez.com/tutapiwin/
In C/C++:
https://openclassrooms.com/courses/apprentissage-de-l-api-windows
As I'm French, they are in french but I think you can change to spannish or english (only on OpenClassrooms)
+ 1
It looks very detailed and rich I'm going to read it ! Thank you