PDA

View Full Version : What's an API?



FloatingPoint
08-31-2003, 08:57 AM
Hello all.

In layman's terms, what does an API mean really?

Thanx.

gcn_zelda
08-31-2003, 09:35 AM
Application Program(ming) Interface...
Asian and Pacific Islander...

but I assume you want the first one...

Well, there's the normal C/C++ window, the DOS command prompt lookin' thingy.

And then there's the App Program Interface. That's like Windows programs and stuff...

Zach L.
08-31-2003, 10:28 AM
Abnormally Placid Iguana

Essentially, its a uniform interface for programming with a particular library or for a particular task, etc.

Windows API is just one example.

gcn_zelda
08-31-2003, 10:35 AM
>>Windows API is just one example

Good point

vasanth
08-31-2003, 09:31 PM
Originally posted by FloatingPoint
Hello all.

In layman's terms, what does an API mean really?

Thanx.

Let me put it in much simpler terms..

Now consider windows programming or OpenGL programming.. to create a window, minimise the window, maximise etc etc you dont write code to do evrything to redraw screen etc etc.. but you just call appropriate functions...


example:- createwindow(1,1,100,200); or what ever...


so you actually dont program to create the window yourself.. you dont have to worry about drawing the window with hard code.. the API does it for you.. so you can say that an API is actually a set of functions which hide the implementation details from you and provide an standard environment...