7 Replies - 875 Views - Last Post: 08 September 2011 - 11:42 AM Rate Topic: -----

#1 hulla  Icon User is offline

  • Writing Lines


Reputation: 49
  • View blog
  • Posts: 732
  • Joined: 05-March 11

What is (a) WIN32 API?

Posted 08 September 2011 - 02:06 AM

I hear alot of people talking about WIN32 APIs but what exactly are they and what have they got to do with C++? Are they the things that people use for graphical programming and graphical-user-interfaces? What can one do with a WIN32 API as compared to a console application exe?
Is This A Good Question/Topic? 0
  • +

Replies To: What is (a) WIN32 API?

#2 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • Posts: 1,688
  • Joined: 13-March 10

Re: What is (a) WIN32 API?

Posted 08 September 2011 - 02:37 AM

Do you know Google?
Was This Post Helpful? 0
  • +
  • -

#3 PlasticineGuy  Icon User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: What is (a) WIN32 API?

Posted 08 September 2011 - 04:34 AM

An API (Application Programming Interface) is a set of functions designed to make doing something easier. WinAPI is short for Windows API, and it is used in C to create applications for the Windows operating system. It is used by including <windows.h>, and interestingly uses a replacement main() called WinMain(). There are many tutorials online for WinAPI.
Was This Post Helpful? 0
  • +
  • -

#4 hulla  Icon User is offline

  • Writing Lines


Reputation: 49
  • View blog
  • Posts: 732
  • Joined: 05-March 11

Re: What is (a) WIN32 API?

Posted 08 September 2011 - 07:15 AM

View Postdarek9576, on 08 September 2011 - 05:37 PM, said:

Do you know Google?

Yes I do know Google. What does WinAPI have to do with Google?

Could someone suggest a WinAPI tutorial for me? I can't find a good one on the internet?
Was This Post Helpful? -1
  • +
  • -

#5 GunnerInc  Icon User is offline

  • "Hurry up and wait"
  • member icon




Reputation: 858
  • View blog
  • Posts: 2,279
  • Joined: 28-March 11

Re: What is (a) WIN32 API?

Posted 08 September 2011 - 07:24 AM

Seriously? No tuts? If you searched here and came up empty... Next logical step would be to google windows api.. Hmmm, windows api... wonder if microsoft has anything to do with it... Yup they do on msdn... All the apis documented! How nice.the docs could be better, but they work tons of sites with docs, tuts, and.samples on the net
Was This Post Helpful? 1
  • +
  • -

#6 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • Posts: 1,688
  • Joined: 13-March 10

Re: What is (a) WIN32 API?

Posted 08 September 2011 - 07:29 AM

View Posthulla, on 08 September 2011 - 07:15 AM, said:

View Postdarek9576, on 08 September 2011 - 05:37 PM, said:

Do you know Google?

Yes I do know Google. What does WinAPI have to do with Google?


Then use it.
Was This Post Helpful? 0
  • +
  • -

#7 AKMafia001  Icon User is offline

  • </code.in.dream>

Reputation: 187
  • View blog
  • Posts: 624
  • Joined: 11-June 11

Re: What is (a) WIN32 API?

Posted 08 September 2011 - 08:15 AM

The best tutorial you might find is,

http://www.winprog.org/tutorial/
Was This Post Helpful? 0
  • +
  • -

#8 NickDMax  Icon User is offline

  • Can grep dead trees!
  • member icon

Reputation: 2250
  • View blog
  • Posts: 9,245
  • Joined: 18-February 07

Re: What is (a) WIN32 API?

Posted 08 September 2011 - 11:42 AM

an API (application programming interface) are NOT: "a set of functions designed to make doing something easier."

An API is the collection of function/structures/constants/classes etc. that enable your program to interact with another product. i.e. it is the "programming interface" designed for integrating with that product.

The Windows API is the collection of functions/structures/constants/objects/protocols etc. used to interact with the windows operating system. The windows API provides all the functionality needed to make windows compatible programs. Everything from reading and writing to files/printers/sockets to drawing pretty windows and graphics.

It is NOT however "something easier" - as it tends to be very low level and it can be quite complicated. Although learning the basics will help you understand windows programming much better.

ALL WINDOWS PROGRAMS USE THE WINDOWS API! but many use other libraries or frameworks built atop of the windows API (MFC, VCI, Qt etc.) these libraries really ARE designed to make things easier.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1