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. migration from c++ 6 to Visual stutio professional 2010

migration from c++ 6 to Visual stutio professional 2010

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++helptutorial
11 Posts 5 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.
  • M Offline
    M Offline
    mrby123
    wrote on last edited by
    #1

    I need to convert my programs from c++ 6 to Visual stutio professional 2010. Please advise how to proceed and what I need to fix typically ? What is the best way to do this ? Thanks Ruilin

    C L A M 4 Replies Last reply
    0
    • M mrby123

      I need to convert my programs from c++ 6 to Visual stutio professional 2010. Please advise how to proceed and what I need to fix typically ? What is the best way to do this ? Thanks Ruilin

      C Offline
      C Offline
      Chandrasekharan P
      wrote on last edited by
      #2

      This link will help you[^]

      Every new day is another chance to change your life.

      M 1 Reply Last reply
      0
      • C Chandrasekharan P

        This link will help you[^]

        Every new day is another chance to change your life.

        M Offline
        M Offline
        mrby123
        wrote on last edited by
        #3

        thanks a lot. Do I have to install visual studio 2008 for converting my visual c++ 6 (2003) ? Please give me some guidances. hanks again

        C 1 Reply Last reply
        0
        • M mrby123

          thanks a lot. Do I have to install visual studio 2008 for converting my visual c++ 6 (2003) ? Please give me some guidances. hanks again

          C Offline
          C Offline
          Chandrasekharan P
          wrote on last edited by
          #4

          I dont have much idea on that. Like you i am also new to this. The only difference is i searched the net first and i send you the link which really suited your query. There are other sites which gives you a very good insight on how the migration has to be done. See this link [^]

          Every new day is another chance to change your life.

          1 Reply Last reply
          0
          • M mrby123

            I need to convert my programs from c++ 6 to Visual stutio professional 2010. Please advise how to proceed and what I need to fix typically ? What is the best way to do this ? Thanks Ruilin

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            mrby123 wrote:

            Please advise how to proceed

            Create a project in VS2010, add the source code from C++ 6 and build the project. Fix all warnings and errors.

            Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman

            1 Reply Last reply
            0
            • M mrby123

              I need to convert my programs from c++ 6 to Visual stutio professional 2010. Please advise how to proceed and what I need to fix typically ? What is the best way to do this ? Thanks Ruilin

              A Offline
              A Offline
              Albert Holguin
              wrote on last edited by
              #6

              You just need to jump right in and convert it. There's no magical way to do it and the number of warnings and errors you get depend on what your source code has in it and how well you coded according to standard (old compiler used to let you get away with using non-standard C++, new one is better about that but still, MS refuses to follow standards strictly, they implement things they want regardless of current standards). ...oh, and don't forget to save a copy of your unchanged code for reference or if you need to fall back to your original code. If you have source control, create a tag to save the location.

              1 Reply Last reply
              0
              • M mrby123

                I need to convert my programs from c++ 6 to Visual stutio professional 2010. Please advise how to proceed and what I need to fix typically ? What is the best way to do this ? Thanks Ruilin

                M Offline
                M Offline
                MagicBishop
                wrote on last edited by
                #7

                Like others have stated. Just open the project or solution in vs2010 and let it convert and backup. Then start walking down the list of errors one at a time. If it's just vc++ and no extensions it should be easy.

                M 2 Replies Last reply
                0
                • M MagicBishop

                  Like others have stated. Just open the project or solution in vs2010 and let it convert and backup. Then start walking down the list of errors one at a time. If it's just vc++ and no extensions it should be easy.

                  M Offline
                  M Offline
                  mrby123
                  wrote on last edited by
                  #8

                  Thanks Guys.

                  1 Reply Last reply
                  0
                  • M MagicBishop

                    Like others have stated. Just open the project or solution in vs2010 and let it convert and backup. Then start walking down the list of errors one at a time. If it's just vc++ and no extensions it should be easy.

                    M Offline
                    M Offline
                    mrby123
                    wrote on last edited by
                    #9

                    Gurus, Please help on this warnning message when I built: 1>d:\test\blast_vib_proc_new\blast_vib_procdlg.cpp(211): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of 'fopen' 1>d:\test\blast_vib_proc_new\blast_vib_procdlg.cpp(223): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of 'fopen'

                    A 1 Reply Last reply
                    0
                    • M mrby123

                      Gurus, Please help on this warnning message when I built: 1>d:\test\blast_vib_proc_new\blast_vib_procdlg.cpp(211): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of 'fopen' 1>d:\test\blast_vib_proc_new\blast_vib_procdlg.cpp(223): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(234) : see declaration of 'fopen'

                      A Offline
                      A Offline
                      Albert Holguin
                      wrote on last edited by
                      #10

                      Next time, post another question... but that's just a warning telling you fopen() is not safe because MS implemented their own "secure" versions of certain functions that actually validate the input to them instead of causing a crash. Of course, you can choose to do your own validation and just ignore the warnings (you can turn them off). fopen_s: http://msdn.microsoft.com/en-us/library/z5hh6ee9%28VS.80%29.aspx[^] Description of security enhancements and how to disable those warnings: http://msdn.microsoft.com/en-us/library/8ef0s5kh%28v=vs.80%29.aspx[^]

                      M 1 Reply Last reply
                      0
                      • A Albert Holguin

                        Next time, post another question... but that's just a warning telling you fopen() is not safe because MS implemented their own "secure" versions of certain functions that actually validate the input to them instead of causing a crash. Of course, you can choose to do your own validation and just ignore the warnings (you can turn them off). fopen_s: http://msdn.microsoft.com/en-us/library/z5hh6ee9%28VS.80%29.aspx[^] Description of security enhancements and how to disable those warnings: http://msdn.microsoft.com/en-us/library/8ef0s5kh%28v=vs.80%29.aspx[^]

                        M Offline
                        M Offline
                        mrby123
                        wrote on last edited by
                        #11

                        thanks, that is useful to me.

                        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