How do u know if your program works on windows xp, or doesn't work on older windows ?

This is a discussion on How do u know if your program works on windows xp, or doesn't work on older windows ? within the C Programming forums, part of the General Programming Boards category; Hi, I really want to know how do u know whether your program works on the lastest version of windows ...

  1. #1
    Unregistered
    Guest

    How do u know if your program works on windows xp, or doesn't work on older windows ?

    Hi,

    I really want to know how do u know whether your program works on the lastest version of windows and not older ones. I saw some commercial programs simply have new versions that support such and such. And once i know whether the program supports it or not, how do i modify to make it compatible?

    thnx

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    if you are coding in pure c/c++ and using the ansi functions you should be able to pretty much guarantee that it will run versions of the o/s it is compiled for.
    Monday - what a way to spend a seventh of your life

  3. #3
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    Oh and you could always test it....
    Monday - what a way to spend a seventh of your life

  4. #4
    Unregistered
    Guest
    but how do u know what is to be modified if it doesn't work at all ?

    thnx

  5. #5
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    If you take a look at the MSDN, you will see that every API function has a section that clarifies which Windows Versions are supported. If you happen to have only functions that support those platforms you want to develop for, it will run on all. If for example you have used two functions that will only run on XP, your program will crash when it comes to this part on 9x.
    hth
    -nv

    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.

  6. #6
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,855
    Step into the program and find where it crashes. (process line by line until the crash occurs)

    or

    Add messageboxes (if possible) and keep moving them further through the code until you find the crash. (On rare occasions the msg box will obscure the problem)

    or

    Create a text log file containing the name of each function called by the program as it is run (and the value/s sent in).
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  7. #7
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    k thnx

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with program
    By HAssan in forum C Programming
    Replies: 8
    Last Post: 06-10-2007, 08:05 PM
  2. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 02:55 PM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  4. Simple Windows Program - text?
    By Doagie in forum Windows Programming
    Replies: 1
    Last Post: 11-27-2004, 01:21 AM
  5. hbrBackground (WNDCLASSEX) problems in Windows XP
    By codec in forum Windows Programming
    Replies: 4
    Last Post: 05-17-2004, 08:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21