Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Migration of a VCPP program to Windows Vista

Migration of a VCPP program to Windows Vista

Scheduled Pinned Locked Moved Windows API
c++performancehelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kchatterjee
    wrote on last edited by
    #1

    Have any one of you migrate any VC++ (using MFC, ver 6.0) program from Windows 32 bit operating systems (XP, 2000, ME, 98SE) to Windows Vista? If so, can you please share some of the problems you have faced and there resolutions? (I heard that Vista has a memory issue if somebody uses malloc/calloc functions). Any additions to this list (with/without resolution)?

    P M 2 Replies Last reply
    0
    • K kchatterjee

      Have any one of you migrate any VC++ (using MFC, ver 6.0) program from Windows 32 bit operating systems (XP, 2000, ME, 98SE) to Windows Vista? If so, can you please share some of the problems you have faced and there resolutions? (I heard that Vista has a memory issue if somebody uses malloc/calloc functions). Any additions to this list (with/without resolution)?

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      I have run some older VC++ (with MFC, version 6) on Vista and haven't really run into any real problems.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      1 Reply Last reply
      0
      • K kchatterjee

        Have any one of you migrate any VC++ (using MFC, ver 6.0) program from Windows 32 bit operating systems (XP, 2000, ME, 98SE) to Windows Vista? If so, can you please share some of the problems you have faced and there resolutions? (I heard that Vista has a memory issue if somebody uses malloc/calloc functions). Any additions to this list (with/without resolution)?

        M Offline
        M Offline
        Mike Dimmick
        wrote on last edited by
        #3

        Jeez, how does this rubbish spread? The memory protection within a process is unchanged. You should have no issues with malloc/calloc as long as you're using them correctly already - if not, there may be changes in how the heap manager allocates memory that will cause the addresses of that memory to be different, which could expose some latent bug. What has changed is the addition of User Account Control. This enforces a requirement that Microsoft have been making for their Windows logo program for a long time - that the application works correctly if the user is not an administrator. Therefore you must not write to privileged locations - for example the Windows folder, Program Files folder, and HKEY_LOCAL_MACHINE. Windows Vista has compatibility put in place for legacy applications that redirects writes to many of these locations to non-privileged per-user stores. This is however confusing to users. You should aim to fix any errors in this area. You'll find them most quickly if you add a manifest to your application that declares a requestedExecutionLevel of 'asInvoker' - the offending operations will then fail with Access Denied errors. You can also test on Windows XP when running as a standard user. For the most part though any issues will be specific to your application. A helpful toolkit is Application Verifier[^] - this will pick up many errors in what you're doing.


        DoEvents: Generating unexpected recursion since 1991

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups