Thread: Is C# the same as win32?

  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    50

    Is C# the same as win32?

    What the title says ?

  2. #2
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986

    No

    What the title says.

  3. #3
    Registered User
    Join Date
    May 2005
    Posts
    28

    No

    C# is a programming language, in the .NET family, and somewhat in the C family. Win32 API is a method of windows programming, via directly accessing the Windows 32 bit API (Application Programming Interface). So, if you haven't garnered as much by now, no they are not the same. The .NET framework is really an abstraction layer over the Win32 API, so while using C# you are still using the Win32 API you are not using it directly. However, there are things that can be done directly through the Win32 API that can not be done in .NET


    Mezzano

  4. #4
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Technically you are not using the Win32 API at all in C# unless you make use of it through using. C# itself exists on more than just the Windows platform. In it's Mono incarnation, it also exists on Macintosh and Linux.

  5. #5
    Registered User
    Join Date
    May 2005
    Posts
    28
    Quote Originally Posted by Frobozz
    Technically you are not using the Win32 API at all in C# unless you make use of it through using. C# itself exists on more than just the Windows platform. In it's Mono incarnation, it also exists on Macintosh and Linux.
    I was referring to the windows version as that is the only system I know that currently has a robust version of C#. Last I heard Mono, as well as another project implementing C# on linux, were still in development stages. Anytime you do anything in C# under windows (anything that would involve the OS ie creating windows, opening files, getting user input, etc..) you ARE using the Win32 API, perhaps I spoke to narrowly, I should have been more clear


    Mezzano

  6. #6
    ---
    Join Date
    May 2004
    Posts
    1,379
    Yes it would use the Win32 API.
    Other OS's, however it is implemented, would use other GUI API's.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console program to Win32
    By Ducky in forum Windows Programming
    Replies: 3
    Last Post: 02-25-2008, 12:46 PM
  2. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  3. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 05:57 PM
  4. Thread Synchronization :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 08-09-2002, 09:09 AM
  5. Win32 API Tutorials?
    By c++_n00b in forum C++ Programming
    Replies: 9
    Last Post: 05-09-2002, 03:51 PM