CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2005
    Posts
    254

    Win32 API and MFC in Windows Vista

    Is it correct to assume that a native program built on an XP machine (using MFC or the Win32 API directly) will run on Windows Vista? The reason I'm asking is that until .NET becomes as ubiquitous as the Win32 API, I am going to stay away from it as much as possible. If for some reason I do use one of the .NET based libraries, I'll use C++/CLI. In another thread, a poster likened C++/CLI to a freak. Yep, it's ugly, but I tried C# and found that writing each line of C# code was like eating a spoonful of puke. I don't know what it is, but I just can't do C#. At least with C++/CLI, I feel like I'm still handling and caring for my poor, mutilated baby. Fortunately, I have the luxury of choosing my programming languages. Anyway, is my assumption correct, regarding Win32-based native code running on Windows Vista?

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: Win32 API and MFC in Windows Vista

    Quote Originally Posted by spiritualfields
    Is it correct to assume that a native program built on an XP machine (using MFC or the Win32 API directly) will run on Windows Vista?
    Of course. Just make sure you have the correct MFC redistributable installed on the target machine.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Dec 2005
    Posts
    254

    Re: Win32 API and MFC in Windows Vista

    Of course. Just make sure you have the correct MFC redistributable installed on the target machine.
    Thanks. My target machine is any PC running windows, from Windows 95 on. Since I won't be upgrading to Vista anytime soon, I wanted to make sure that my apps will run on the machines of customers who have upgraded. For example, I was writing apps "for" XP machines long before I upgraded to XP. In the same way, I want to write apps "for" Vista, though I don't have Vista. I write native desktop apps. To relieve myself of redistribution problems, I statically link my executable, and so don't have to worry about the particular machines that my customers have, only that they are based on the Win32 API.

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: Win32 API and MFC in Windows Vista

    Just be careful if you are browsing the MSDN. A lot of functions are not supported anymore on Windows 95. Before using a Win32 API function, check the minimum requirements since Win95 might not be in the list.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  5. #5
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Win32 API and MFC in Windows Vista

    Reading this might also be valuable. http://www.microsoft.com/downloads/d...displaylang=en

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured