Thread: C# vs. WINAPI

  1. #1
    Registered User
    Join Date
    May 2005

    C# vs. WINAPI

    Should I learn WINAPI if i'm learning C#?


  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Hannover, Germany
    C# has nothing to do with WINAPI, so you are not required to learn it. I'm not sure if you should learn it, it's kinda like asking should I play football or go swimming. Each is a viable option, if you can, do both.

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    If you use C#, you'll be using System.Windows.Forms. You can learn the WinAPI if you want but I'm not sure if you can use it or not.

  4. #4
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Nah, just focus on C# if you're learning C#. That's my 2 cents.

    Like nvoigt says, C# has nothing to do with the WinAPI, but you can use the WinAPI in C# by importing certain system dlls like kernel32.dll and user32.dll. To LEARN the whole WinAPI would be pointless for C# unless you take notes and use as a reference for your future C# that you can use as a powerhouse of awesome functions, like those functions that can help you create keyloggers and other illegal programs :]...hehehe.

  5. #5
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    It helps to know the WinAPI, but over time it's going to become more and more of a "DONT GO THERE" place as Microsoft builds on .NET. While you can call WinAPI from .NET, its generally not a good idea to - most times there are better ways in .NET.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WinAPI & threading
    By @nthony in forum Windows Programming
    Replies: 17
    Last Post: 10-15-2007, 04:41 PM
  2. do i still need winAPI
    By datainjector in forum Windows Programming
    Replies: 8
    Last Post: 07-12-2003, 01:43 AM
  3. references for the winapi
    By stallion in forum Windows Programming
    Replies: 9
    Last Post: 01-28-2003, 02:56 AM
  4. WINAPI: Meaning of HDC ?
    By Mecnels in forum Windows Programming
    Replies: 1
    Last Post: 01-21-2002, 10:06 AM
  5. C++ and WinAPI?
    By Matt2u in forum C++ Programming
    Replies: 9
    Last Post: 01-09-2002, 12:57 AM