legacy code compatability mode

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    legacy code compatability mode

    [sorry for the compiler specific question]

    In the Visual C++ 7.1 compiler is there a legacy code mode? This is
    for non-GUI code. Its easy enough to bring the project in but of
    course I get a lot of clashes with ISO std C++ conventions.

    example) old style std library includes such as iostream.h

    thanks
  • Phlip

    #2
    Re: legacy code compatability mode

    Mark wrote:
    [color=blue]
    > [sorry for the compiler specific question]
    >
    > In the Visual C++ 7.1 compiler is there a legacy code mode? This is
    > for non-GUI code. Its easy enough to bring the project in but of
    > course I get a lot of clashes with ISO std C++ conventions.
    >
    > example) old style std library includes such as iostream.h[/color]

    VC++ has no "legacy mode". Think about it - the compiler's environment would
    need to somehow track every possible combination of SGI and pre-Standard
    STL, just to hit the exact mix you got.

    Fix the actual code. If you hesitate, this is a sign your code has no unit
    tests. To fix your real problem, write what it does again, bit by bit, into
    a new project. Make sure that project goes one feature at a time, and add a
    test each feature before pulling in the next feature.

    Use the legacy code only as a cheat sheet, to show you things like how to
    call SetPriorityClas s() or RasEnumConnecti ons().

    Along the way, write the cleanest code you can, following rules such as
    found in style guidelines like /Code Complete 2nd Ed/ by Steve McConnell.
    And _frequently_ review your current progress and your code's state with
    your boss and colleagues.

    --
    Phlip



    Comment

    • Mike Wahler

      #3
      Re: [OT, redir, link] legacy code compatability mode

      "Mark" <prenom_nomus@y ahoo.com> wrote in message
      news:c5b88987.0 409260659.3e813 f85@posting.goo gle.com...[color=blue]
      > [sorry for the compiler specific question][/color]

      Compiler-specifics are not topical here. Don't
      apologize, just don't post material about it here.
      Since this group is not about such material, there's
      no reason to expect that any answers will be correct
      or useful.
      [color=blue]
      > In the Visual C++ 7.1 compiler is there a legacy code mode?[/color]

      Were I needing to know the answer to this, I'd ask in
      a group where Visual C++ is topical. (See www.msdn.microsoft.com
      for technical info about MS products, and a list of newsgroups
      about them.

      -Mike


      Comment

      • John Harrison

        #4
        Re: legacy code compatability mode


        "Mark" <prenom_nomus@y ahoo.com> wrote in message
        news:c5b88987.0 409260659.3e813 f85@posting.goo gle.com...[color=blue]
        > [sorry for the compiler specific question]
        >
        > In the Visual C++ 7.1 compiler is there a legacy code mode? This is
        > for non-GUI code. Its easy enough to bring the project in but of
        > course I get a lot of clashes with ISO std C++ conventions.
        >
        > example) old style std library includes such as iostream.h
        >
        > thanks[/color]

        Fix the code. Unless your code is really really bad it should be a fairly
        painless process. Ask here if you need any help on this.

        john


        Comment

        • Sachin Garg

          #5
          Re: legacy code compatability mode

          If your only concern is getting "depriciate d" warnings (C4995), you
          can probably go to project properties > C++ > Advanced, and disable
          this warning.

          Comment

          Working...