Thread: help me with windows api!

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    42

    help me with windows api!

    i want to use WinAPI in c? can anyone tell me how to start that? now i learn VB too. since it is easy to learn. hahha. please help me to show how to start with winAPI. thanks alot.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by hugoguan View Post
    i want to use WinAPI in c? can anyone tell me how to start that? now i learn VB too. since it is easy to learn. hahha. please help me to show how to start with winAPI. thanks alot.
    The best tutorial I know of is here...

    theForger's Win32 API Tutorial

    Basically winapi in C is all about handling messages... Pratically everything windows does results in messages sent to a special loop in your code and you get to deal with them so be extra careful to pay attention to that part of the tutorial. In the next while your life will be filled with complex switch statements... but once you get the hang of it, it's not really all that bad.

    You will also need the windows SDK (Software Development Kit) documentation which you can download here....

    Download details: Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1

    The SDK is a full disclosure of all windows function calls. It's HUGE... so before you just go and download everything, I suggest you go through the installer options and *only download the documentation* for Windows... screw .NET it's a load of crap.

    Finally I'm not fond of Microsoft's Visual C++ compiler. It will compile C but you can do a lot better... I generally suggest PellesC which is free and comes with a full set of windows headers.

    Pelles C - Download

    You may also want to join their forums so you can get PellesC specific answers to problems or questions...

    Pelles C forum - Index


    Hope that helps....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. win32 api MDI windows
    By TheNewOne in forum Windows Programming
    Replies: 5
    Last Post: 03-20-2009, 09:11 PM
  2. Use windows API functions in a GTK+ program?
    By Jake.c in forum Windows Programming
    Replies: 19
    Last Post: 01-23-2009, 06:40 AM
  3. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  4. Windows messenger API
    By GanglyLamb in forum Windows Programming
    Replies: 0
    Last Post: 07-10-2005, 02:52 AM
  5. Future of Windows API programming ?
    By Dev in forum Windows Programming
    Replies: 7
    Last Post: 04-22-2003, 11:21 PM