LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 657 users online 165821 members 1718 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Video | Dictionary | News | FAQ
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 38 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

API
hmm...
Replies: 11Last Post April 22, 2004 3:41pm by Elvish15601
Single page for this topic Email Print Favorite
( Elvish15601 )


Dairy Product Addict

Patron
Reply
What are the different API's?

-------
Quoter for Life, if you are put this in your sig too.
Join me in my fantasy world

12:37 pm on April 17, 2004 | Joined Oct. 2003 | 217 Days Active
Join to learn more about Elvish15601 Pennsylvania, United States | Asexual Male | 1210 Posts | 3682 Points
BBallAsh23


Savvy

Patron
Support Leader
Tech Support Leader
Reply
whats an API?

automatic program intro? lol... i find this useful... so i will have an idea has to what i will learn next school year!

-------
Capt Jack Sparrow Group!
Members Rides!!


1:28 pm on April 17, 2004 | Joined June 2003 | 1371 Days Active
Join to learn more about BBallAsh23 Maryland, United States | Straight Female | 28435 Posts | 51644 Points
( Elvish15601 )


Dairy Product Addict

Patron
Reply
Application Programming Interface

-------
Quoter for Life, if you are put this in your sig too.
Join me in my fantasy world

2:43 pm on April 17, 2004 | Joined Oct. 2003 | 217 Days Active
Join to learn more about Elvish15601 Pennsylvania, United States | Asexual Male | 1210 Posts | 3682 Points
vitamin


Rawwrrr

Patron
Tech Support Leader
Reply
woudldnt know m88ty dont do programming!

-------
Missing you Clairey xxx

7:24 pm on April 17, 2004 | Joined Sep. 2002 | 1025 Days Active
Join to learn more about vitamin England, United Kingdom | Straight Male | 13271 Posts | 27998 Points
sakurag


Dairy Product Addict

Ad Free
Reply
I know that Win32 is an API.  There is a DOS API, and I believe that Swing and AWT are Java API's.  In fact, most anything can be an API.  But those are probably the most widely used.  

Here's an instance of your own API.  

Say you have a GUI built on Win32 or Windows Forms(C#/VB), and then you had a SQL server in the background to throw out some infor when you needed it.  Well, let's say you were a smart programmer, who didn't write stored procedures on the SQL server, and didn't embed SQL calls inside your GUI. :p  But instead you decided to create an interface between the two distinctly different realms.

GUI <--->  ?  <---> SQL DB

What goes in that '?'

Well, that's where your own API comes in.  You write an interface class(object) to sit between them.  For instance, if it dealt with customers, your GUI would call.. maybe Query.GetCustomer( ).

This Query class would abstract EVERYTHING DB related away from the GUI.  The GUI would have no clue that it's talking to a Database.  Which is nice.. because what if it's not..

Let's think about that.  So now we have to think.. Is Query itself an true concrete class?  No, why should it be.  It should be an Interface, or Abstract class.  Now we can build a whole bunch of classes that can extend Query.  DBQuery, SQLDBQuery, FlatFileQuery, ODBQuery, etc.  They would all inherit from Query, so your GUI wouldn't know the difference.  Now let me redraw the picture..

GUI <---> Query <---> ?

Now the ? is in a great place.  That means the GUI has no clue whats in the ?. You can put ANYTHING there.  As long as you write an appropriate Query class for it.  

So now I've built a Query API for my application.  It's just an interface, so you MUST implement the methods in each inherited class.  But this is very very powerful.

I talk to much.

-------
I've got spurs that jingle jangle jingle.
As I go riding merrily along.
And they sing, "Oh, ain't you glad you're single?"
And that song ain't so very far from wrong.


2:24 pm on April 18, 2004 | Joined Oct. 2002 | 473 Days Active
Join to learn more about sakurag Washington, United States | Straight Male | 1920 Posts | 8363 Points
squirellplayingtag


Dairy Product Addict

Patron
Reply
I surprisingly understand that. I want to know how! Hehe. All in good time Dave, all in good time.

-------
"The most abundant element in the universe is
hydrogen, then second is stupidity."-Harlan Ellison
"What good fortune for our governments that the
people do not think."-Hitler

3:50 pm on April 18, 2004 | Joined Jan. 2003 | 1256 Days Active
Join to learn more about squirellplayingtag Maryland, United States | Straight Male | 6469 Posts | 27059 Points
sakurag


Dairy Product Addict

Ad Free
Reply
Go for it.  3 weeks ago I didn't know a bit of C# or how to do ANYTHING with it.  Now I'm developing too applications in it.  One is a Ski Rental application and the other is an image processing application.  Two totally different things, and I'm doing it from scratch.  It's great fun, and if I can learn it, you can too.  I'm not the smartest cookie out there ;}

-------
I've got spurs that jingle jangle jingle.
As I go riding merrily along.
And they sing, "Oh, ain't you glad you're single?"
And that song ain't so very far from wrong.

6:02 pm on April 18, 2004 | Joined Oct. 2002 | 473 Days Active
Join to learn more about sakurag Washington, United States | Straight Male | 1920 Posts | 8363 Points
( Elvish15601 )


Dairy Product Addict

Patron
Reply
Quote: from sakurag at 5:24 pm on April 18, 2004

I know that Win32 is an API.  There is a DOS API, and I believe that Swing and AWT are Java API's.  In fact, most anything can be an API.  But those are probably the most widely used.  

Here's an instance of your own API.  

Say you have a GUI built on Win32 or Windows Forms(C#/VB), and then you had a SQL server in the background to throw out some infor when you needed it.  Well, let's say you were a smart programmer, who didn't write stored procedures on the SQL server, and didn't embed SQL calls inside your GUI. :p  But instead you decided to create an interface between the two distinctly different realms.

GUI <--->  ?  <---> SQL DB

What goes in that '?'

Well, that's where your own API comes in.  You write an interface class(object) to sit between them.  For instance, if it dealt with customers, your GUI would call.. maybe Query.GetCustomer( ).

This Query class would abstract EVERYTHING DB related away from the GUI.  The GUI would have no clue that it's talking to a Database.  Which is nice.. because what if it's not..

Let's think about that.  So now we have to think.. Is Query itself an true concrete class?  No, why should it be.  It should be an Interface, or Abstract class.  Now we can build a whole bunch of classes that can extend Query.  DBQuery, SQLDBQuery, FlatFileQuery, ODBQuery, etc.  They would all inherit from Query, so your GUI wouldn't know the difference.  Now let me redraw the picture..

GUI <---> Query <---> ?

Now the ? is in a great place.  That means the GUI has no clue whats in the ?. You can put ANYTHING there.  As long as you write an appropriate Query class for it.  

So now I've built a Query API for my application.  It's just an interface, so you MUST implement the methods in each inherited class.  But this is very very powerful.

I talk to much.


Wow that was concise and it makes me want to get a book even more but im still poor lol.  Thanks for the info

-------
Quoter for Life, if you are put this in your sig too.
Join me in my fantasy world


12:15 pm on April 19, 2004 | Joined Oct. 2003 | 217 Days Active
Join to learn more about Elvish15601 Pennsylvania, United States | Asexual Male | 1210 Posts | 3682 Points
J4m1e


Dairy Product Addict
Reply
Almost everything uses an API, you can't list them all, it would take forever, you can use API's to control your mouse without touching it, eg, to click on something when you're not there. Almost every application has its own API.

10:07 am on April 21, 2004 | Joined Feb. 2004 | 159 Days Active
Join to learn more about J4m1e Scotland, United Kingdom | Straight Male | 459 Posts | 2085 Points
cowsarenotevil


Dairy Product Addict
Reply
Hmm, this probably came from a PM convo. he was having with me.  He's actually looking for graphics API's.  Some of them are:

OpenGL
Direct3D
SDL
Allegro
Win32 GDI


I personally use OpenGL, but there's no best choice.


9:51 pm on April 21, 2004 | Joined Mar. 2004 | 57 Days Active
Join to learn more about cowsarenotevil New York, United States | Male | 506 Posts | 1092 Points
sakurag


Dairy Product Addict

Ad Free
Reply
I'm not a big graphics person.  Though, I can't really say that, given I have done some semi-intensive graphics work.  Not with any real api, unless you consider GDI+ using only the Image and Bitmap objects taking advantage of a graphics API.

We are required to do pixel level manipulation for contrasts, affine transformations, etc.  Right now I'm struggling with simple fixed axis rotation :{

Something is wrong with my matricies. :{  Tomorrow I"ll have to fix that, then I have to impliment linear and bilinear interpolation into the mix.. sigh.

-------
I've got spurs that jingle jangle jingle.
As I go riding merrily along.
And they sing, "Oh, ain't you glad you're single?"
And that song ain't so very far from wrong.


1:10 am on April 22, 2004 | Joined Oct. 2002 | 473 Days Active
Join to learn more about sakurag Washington, United States | Straight Male | 1920 Posts | 8363 Points
( Elvish15601 )


Dairy Product Addict

Patron
Reply
well by graphics i mainly just mean something other than command line interface

-------
Quoter for Life, if you are put this in your sig too.
Join me in my fantasy world

3:41 pm on April 22, 2004 | Joined Oct. 2003 | 217 Days Active
Join to learn more about Elvish15601 Pennsylvania, United States | Asexual Male | 1210 Posts | 3682 Points
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic