Thread: Will win32 API programming knowledge in C still aplly to MS Vista?

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    6

    Will win32 API programming knowledge in C still aplly to MS Vista?

    I recently bought the Petzold Programming Windows 5th edition. I've made it to chapter 3. But I was just curious because a reviewer on amazon said that in MS Vista, the new windows version, the win API calls are all deprecated and .NET is going to be the new API.

    http://www.amazon.com/gp/cdp/member-...Fencoding=UTF8

    Is this true? or is this guy just full of it (I mean he also didn't like Guild Wars!)? Should I bother learning the win32 API in C if all the functions are going to be pointless in the next windows incarnation?

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

  3. #3
    Banned nickname_changed's Avatar
    Join Date
    Feb 2003
    Location
    Australia
    Posts
    986
    He's full of it. Think about it - there's billions of dollars of software that uses the Win32 API directly in C. If Vista broke that, all of that software wouldn't work. Microsoft don't do that - in fact, there is code in Windows XP that simulates bugs that software from Win95 expected.

    While Microsoft certainly won't be pushing it, they won't force anyone to stop writing WinAPI code.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    And people will still show up here expecting Turbo-C to be able to use it
    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.

  5. #5
    Registered User
    Join Date
    Jul 2005
    Location
    Europe
    Posts
    4
    Almost all parts of Vista are coded in pure C/Asm and Win32 API calls. Same applies to Office 12 and most Microsoft's applications.
    It looks that WinFX/.NET will be the primary framework for all developers except those working for MS

    However I'm sure that WinFX will become the preferable API sooner or later. Even then, unmanaged C code will still be necessary for low level system stuff, like drivers, kernel hooks, system addons etc.
    Last edited by Inray; 09-17-2005 at 03:11 AM.

  6. #6
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    The guy didn't say win32 api was going to be obsolete, discontinued or no longer supported, just that win32 api is deprecated (ancient but still supported for backward compatability). The preferred method of writing NEW programs is with Visual Studio .NET or parts of it such as C#. C porogramming skills in the MS-Windows world are quickly becoming obsolete -- programmers must either keep their skills upgraded or expect to someday be without a job. Some (many?) programmers may scoff at that, but how many CPM (predessor of MS-DOS) , MS-DOS and Windows 3.1 programmers are still around today? Either keep your programming skills current or die by the wayside.
    Last edited by Ancient Dragon; 09-17-2005 at 07:00 AM.

  7. #7
    Registered User
    Join Date
    Jul 2005
    Location
    Europe
    Posts
    4
    Quote Originally Posted by Ancient Dragon
    The guy didn't say win32 api was going to be obsolete, discontinued or no longer supported, just that win32 api is deprecated (ancient but still supported for backward compatability). The preferred method of writing NEW programs is with Visual Studio .NET or parts of it such as C#. C porogramming skills in the MS-Windows world are quickly becoming obsolete -- programmers must either keep their skills upgraded or expect to someday be without a job. Some (many?) programmers may scoff at that, but how many CPM (predessor of MS-DOS) , MS-DOS and Windows 3.1 programmers are still around today? Either keep your programming skills current or die by the wayside.
    I agree with your final verdict, anyone should keep his programming skills in sync with future technologies, including .NET, C# and the rest stuff.
    Besides that, I have to dissagree with you. .NET VM/JIT, the whole Windows Vista, Office 12, all of them are pure C code.

    Microsoft have just released the new Vista SDK for C/C++ programmers. C/C++ is one way for a systems developer who writes low level code, like drivers, kernel code, hardware accessing code, operating system parts, embedding apps etc.

  8. #8
    Registered User
    Join Date
    Mar 2005
    Posts
    135
    I've tested a pure Win32 - C program in the MS Vista Beta and it works flawlessly. Your Win32 - C programs will work in Vista. No need to worry.

    However, things are rapidly moving forward and .NET - C# etc.. will become the dominant tools for development on Windows Vista, and probably future versions of windows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Limitations on Win32 API functions
    By csonx_p in forum Windows Programming
    Replies: 5
    Last Post: 04-09-2008, 04:09 AM
  2. Win32 API help
    By 52Cent in forum Windows Programming
    Replies: 8
    Last Post: 01-23-2008, 10:24 AM
  3. OpenSSL and Win32 SSL API :: SSL/TLS
    By kuphryn in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-10-2004, 07:46 PM
  4. Win32 API - Dynamic Link Library Loading - behind the scenes
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 04-05-2002, 08:31 AM
  5. Does C++ knowledge come into Win32 API?
    By Flucas in forum Windows Programming
    Replies: 10
    Last Post: 10-26-2001, 10:17 AM