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. C / C++ / MFC
  4. win95 exe's jump to win2000 - (Painful)

win95 exe's jump to win2000 - (Painful)

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
4 Posts 4 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.
  • G Offline
    G Offline
    Gerry
    wrote on last edited by
    #1

    We have win95 exe's written in c++ & mfc...these work well on win95, but keep blowing up with "Abnormal Terminations" on win2000. How best can I migrate my VC5 & MFC code to Win2000 ????? Would a win2000 dev pc with devStudio install & a recompile do any good? Cheers Gerry.

    K E 2 Replies Last reply
    0
    • G Gerry

      We have win95 exe's written in c++ & mfc...these work well on win95, but keep blowing up with "Abnormal Terminations" on win2000. How best can I migrate my VC5 & MFC code to Win2000 ????? Would a win2000 dev pc with devStudio install & a recompile do any good? Cheers Gerry.

      K Offline
      K Offline
      Kannan Kalyanaraman
      wrote on last edited by
      #2

      I'm not expert in these things, but let me share my experience. From my personal experience, you need to work it(compile ... devet.. testing) on a nt or 2k machine. The problem is most of the code would work without a hickup in 95/98 but almost always will end up blowin up in NT / 2K. Most of the problem could be to do with uninitialized memory (in my case that was the problem) so while do the debugging in NT/2K machine ... you have more chances of spotting the bug. Cheers Kannan

      L 1 Reply Last reply
      0
      • G Gerry

        We have win95 exe's written in c++ & mfc...these work well on win95, but keep blowing up with "Abnormal Terminations" on win2000. How best can I migrate my VC5 & MFC code to Win2000 ????? Would a win2000 dev pc with devStudio install & a recompile do any good? Cheers Gerry.

        E Offline
        E Offline
        Erik Funkenbusch
        wrote on last edited by
        #3

        Generally speaking, there's probably a bug in your code that isn't showing itself in Win95. This might be because you're relying on the way Win95 returns or processes data, which is different under NT. Or it might simply be because NT and Win95 create different kinds of call stacks and therefore exposes a bug that just happened to work under 9x. In any case, you should debug on the platform you're trying to target.

        1 Reply Last reply
        0
        • K Kannan Kalyanaraman

          I'm not expert in these things, but let me share my experience. From my personal experience, you need to work it(compile ... devet.. testing) on a nt or 2k machine. The problem is most of the code would work without a hickup in 95/98 but almost always will end up blowin up in NT / 2K. Most of the problem could be to do with uninitialized memory (in my case that was the problem) so while do the debugging in NT/2K machine ... you have more chances of spotting the bug. Cheers Kannan

          L Offline
          L Offline
          l a u r e n
          wrote on last edited by
          #4

          moral of the story is always init your ptrs to NULL in your constructors and test for NULL before using them kidz ;) --- "every year we invent better idiot proof systems and every year they invent better idiots"

          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