Monday, May 24, 2010

C++ into WIN32API?

ok, I am learning C++. How come WIN32 API different.

C++ into WIN32API?
One way to look at it is that you can write your own functions in c or c++, right? Well, the Win32 API is functions that Microsoft has written. They're functions that the OS has exposed to you. You don't really care what language they're written in as long as you can make calls to them in the language you want, like c++. OK?
Reply:I believe its because Win32 is written in the programming language called Basic.
Reply:Because C++ is not the Windows API. Windows programming means using prewritten code to control Windows. The API happens to be available in C++, hence you use C++ when using the Windows API. For example, the Twisted APIs (http://twistedmatrix.com/trac/ ) are available in Python, but not C++. Or WinForms in .NET only. Or many of the Java libraries in Java only.


No comments:

Post a Comment