Thread: Differences between Windows XP and Windows Vista programming

  1. #1
    Registered User
    Join Date
    Jan 2009

    Differences between Windows XP and Windows Vista programming

    Hi Guys,

    I'm quite new to this and wanted to know the difference between doing programming on windows XP compared to doing it on Windows Vista? and if so does the downloads and the helpful stuff you guys have posted still apply to me (i'm on vista)

    Thanks in advance guys

  2. #2
    Join Date
    Oct 2007
    Inside my computer
    Vista has a couple of new APIs, mostly UI stuff, that you cannot use on XP, so if you target Vista, you can use those.
    You must also make sure to program for machines that are NOT running as administrators, else it will break in Vista.
    You should also include a manifest for the app to run as admin in Vista, if your app requires admin privileges (if you are targeting XP). If you are targeting Vista, you can elevate using UAC, but I don't really consider it worth the trouble, since Microsoft obviously could not make any good API for it.
    There are probably plenty of resources on MSDN about this, but I have no links.

    You might also want to consider having a look at Windows 7. The public beta is out, so you can mess around with those APIs and features, as well.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    For nearly everything you do, they are the same. Vista changes the graphics driver interface completely, but unless you are working with graphics drivers, that's not a concern for YOU. Likewise, it's changed many user interface "look and feel", but you are not involved with how the system does things internally.

    There are of course some changes that you may have to care about, such as new fancy functions that let your application look fancier, etc.

    But as a beginner, you shouldn't really bother with things that relate to that.

    Moderators: Could we split this into it's own thread...

    Last edited by matsp; 01-15-2009 at 05:03 AM.
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Quote Originally Posted by matsp
    Moderators: Could we split this into it's own thread...
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM
  2. Windows XP (and Vista) shiney look and feel
    By lightatdawn in forum A Brief History of
    Replies: 25
    Last Post: 09-18-2005, 02:56 PM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. Dos differences in Windows NT and Windows XP
    By Ruchikar in forum A Brief History of
    Replies: 5
    Last Post: 09-17-2003, 11:36 PM
  5. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM