Calling raw windows API using borland
Im a bit of a noobie... I know what API I want to call. But I don't know how to call it. I want to call CreatePen, LineTo, and TextoutA, which are all located in GDI32.dll. I use a borland compiler, and I have converted the GDI32 dll into a lib and put it in my lib directory.
Here's the thing.
I don't know how to call the API. I don't know if I should call it the same way you would in visual C++ or a totally different way..
Do I need to directly import the DLL instead of using the library? (if so how?)
Is the library I have created in borland a static library, or a dynamic library that will link to GDI when I am done?
Do I need a specific header file to do all this?
How do I know what the functions should be initialised as?
Sorry to bombard you with questions, but I would like some answers so as to understand how I can use raw API instead of using a limiting header command.
I've looked at header files but they only give a minor clue. Looking at the .lib files shows (among alot of unreadable chars) what API's are in it, but not how to declare it..