hey C++ forums again,
This time i am struggling with using the Gdi32.lib i can link and every thing but do not know how to use it because i am looking at game making tutorials but they say "i already assume you know how to use Gdi32.lib in you're program" but even if i try to find how to use it but the problem is i just can't find it. Please anyone who know or has used this please give me an tutorial of some kind thanks in advance.
Your IDE should have a folder called "lib", it will be in there. If you are using the Mingw compiler though the libraries are named differently to indicate what compiler they are meant for. This one would be "libgdi32.a" and functionally there is little difference between the two.
After you've linked to the library you need to include the correct header to expose the functions to your program. The tutorial here neglects to include 'Wingdi.h' which is where most of these functions are declared. Insert #include<wingdi.h> underneath #include <windows.h> and let us know if you have any more problems.