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. Using VC++ 2008 compiler with VC++ 2005, but keep compatibility with Win98 ?

Using VC++ 2008 compiler with VC++ 2005, but keep compatibility with Win98 ?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studioquestion
10 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.
  • D Offline
    D Offline
    Defenestration
    wrote on last edited by
    #1

    Is it possible to use the VC++ 2008 compiler with Visual Studio 2005, so that you benefit from the smaller code produced by the VC++ 2008 compiler, but yet keep compatibility with Win98 (ie. still use VC++ 2005 runtime libraries) ?

    T J J D 4 Replies Last reply
    0
    • D Defenestration

      Is it possible to use the VC++ 2008 compiler with Visual Studio 2005, so that you benefit from the smaller code produced by the VC++ 2008 compiler, but yet keep compatibility with Win98 (ie. still use VC++ 2005 runtime libraries) ?

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      as long as you don't call specific APIs which Win98 weren't providing yet, yes, you can...

      [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

      D 1 Reply Last reply
      0
      • T toxcct

        as long as you don't call specific APIs which Win98 weren't providing yet, yes, you can...

        [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

        D Offline
        D Offline
        Defenestration
        wrote on last edited by
        #3

        Do you just copy the relevant compiler files: c1.dll c1xx.dll c2.dll cl.exe or should the whole bin folder be copied ?

        T 1 Reply Last reply
        0
        • D Defenestration

          Do you just copy the relevant compiler files: c1.dll c1xx.dll c2.dll cl.exe or should the whole bin folder be copied ?

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          either provide every linked dll or static link the dependencies... but don't copy the compiler itself !!! humm, it seems i misunderstood your original question. unfortunately, no, you can't use VC++2005 compiler with VS2008 (or vice versa). but you still can compile an application targetting Win98 with VC++2005 or VC++2008

          [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

          D 1 Reply Last reply
          0
          • D Defenestration

            Is it possible to use the VC++ 2008 compiler with Visual Studio 2005, so that you benefit from the smaller code produced by the VC++ 2008 compiler, but yet keep compatibility with Win98 (ie. still use VC++ 2005 runtime libraries) ?

            J Offline
            J Offline
            JudyL_MD
            wrote on last edited by
            #5

            Just use your 2008 and set the _WIN32_WINNT and WINVER variables to indicate that you want to target Win98 (0x0410) Judy

            D 1 Reply Last reply
            0
            • T toxcct

              either provide every linked dll or static link the dependencies... but don't copy the compiler itself !!! humm, it seems i misunderstood your original question. unfortunately, no, you can't use VC++2005 compiler with VS2008 (or vice versa). but you still can compile an application targetting Win98 with VC++2005 or VC++2008

              [VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]

              D Offline
              D Offline
              Defenestration
              wrote on last edited by
              #6

              toxcct wrote:

              but you still can compile an application targetting Win98 with VC++2005 or VC++2008

              As I understand it, the Visual C/C++ 2008 runtime libraries no longer support Win98 though, so it won't run on Win98, even if it's targetted for Win98. Is this not the case ? See http://forums.msdn.microsoft.com/en-US/vcgeneral/thread/d651fdb9-5e51-44eb-b518-3f481bfcf0c5/[^]

              1 Reply Last reply
              0
              • J JudyL_MD

                Just use your 2008 and set the _WIN32_WINNT and WINVER variables to indicate that you want to target Win98 (0x0410) Judy

                D Offline
                D Offline
                Defenestration
                wrote on last edited by
                #7

                This won't work because the Visual C/C++ runtime library doesn't support Win98. See http://forums.msdn.microsoft.com/en-US/vcgeneral/thread/d651fdb9-5e51-44eb-b518-3f481bfcf0c5/[^]

                J 1 Reply Last reply
                0
                • D Defenestration

                  Is it possible to use the VC++ 2008 compiler with Visual Studio 2005, so that you benefit from the smaller code produced by the VC++ 2008 compiler, but yet keep compatibility with Win98 (ie. still use VC++ 2005 runtime libraries) ?

                  J Offline
                  J Offline
                  Joe Woodbury
                  wrote on last edited by
                  #8

                  Be aware that the smaller code in VS 2008 is probably due to the NOWIN98 linker setting being automatic. In VS 2005 you can set this in the linker optimization properties. Your app will run slightly slower on Windows 98 as a result, but it will run.

                  Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                  1 Reply Last reply
                  0
                  • D Defenestration

                    Is it possible to use the VC++ 2008 compiler with Visual Studio 2005, so that you benefit from the smaller code produced by the VC++ 2008 compiler, but yet keep compatibility with Win98 (ie. still use VC++ 2005 runtime libraries) ?

                    D Offline
                    D Offline
                    Defenestration
                    wrote on last edited by
                    #9

                    I haven't tested it the method, which is to manually change the value of "MajorOperatingSystemVersion" in the PE header, but the original author had luck getting his app to run on NT 4. You may also have to manually calculate the "Checksum" value and change that as well: http://groups.google.com/group/Visual-Studio-NET-2005/browse_thread/thread/4fa74dafe3eb6ef5/3aaeafa3b6338ea7[^]

                    1 Reply Last reply
                    0
                    • D Defenestration

                      This won't work because the Visual C/C++ runtime library doesn't support Win98. See http://forums.msdn.microsoft.com/en-US/vcgeneral/thread/d651fdb9-5e51-44eb-b518-3f481bfcf0c5/[^]

                      J Offline
                      J Offline
                      JudyL_MD
                      wrote on last edited by
                      #10

                      Didn't notice that change for 2008. Sorry :-O

                      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