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. Other Discussions
  3. The Weird and The Wonderful
  4. CHOTD [modified]

CHOTD [modified]

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpphpvisual-studiocom
12 Posts 9 Posters 69 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.
  • L Offline
    L Offline
    leppie
    wrote on last edited by
    #1

    I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

    xacc.ide
    The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

    D O J T V 7 Replies Last reply
    0
    • L leppie

      I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

      xacc.ide
      The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      leppie wrote:

      I have been given a VB6 project to upgrade to C#

      Bah, that's nothing. Or null. Or empty. ;P


      [My Blog]
      "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - RĂ¼diger Klaehn
      "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe

      1 Reply Last reply
      0
      • L leppie

        I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

        xacc.ide
        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

        O Offline
        O Offline
        originSH
        wrote on last edited by
        #3

        Surely this is better than being given a C# app to downgrade to VB6? And better than being given a VB 6 to maintain.

        1 Reply Last reply
        0
        • L leppie

          I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

          xacc.ide
          The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          Better that than the other way round

          --- How to get answers to your questions[^]

          1 Reply Last reply
          0
          • L leppie

            I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

            xacc.ide
            The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

            T Offline
            T Offline
            Tristan Rhodes
            wrote on last edited by
            #5

            That's was a pretty big typo there ^^ Nice Rule btw

            ------------------------------- Carrier Bags - 21st Century Tumbleweed.

            1 Reply Last reply
            0
            • L leppie

              I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

              xacc.ide
              The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #6

              leppie wrote:

              - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references...

              Wouldn't such a mammoth statistics suggest going for a fresh VB.NET development rather?

              Vasudevan Deepak Kumar Personal Homepage Tech Gossips

              L 1 Reply Last reply
              0
              • V Vasudevan Deepak Kumar

                leppie wrote:

                - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references...

                Wouldn't such a mammoth statistics suggest going for a fresh VB.NET development rather?

                Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #7

                I think the application has less lines of code than errors, so yes I am pushing for a fresh C# app :)

                xacc.ide
                The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                V 1 Reply Last reply
                0
                • L leppie

                  I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

                  xacc.ide
                  The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                  X Offline
                  X Offline
                  Xiangyang Liu
                  wrote on last edited by
                  #8

                  leppie wrote:

                  - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references...

                  I don't understand how this can be classified as a "coding horror". If you copy VB6 code into a VB.NET (or C#) project and compile it, I am supprised that you did not get more warnings and errors. As we developers know, one syntax error or misspelling could cause tens or hundreds of other errors, which means when you fix one, the others will disappear, too. Coding Horror implies that someone wrote horrible code. In this case, who that someone would be? The VB6 programmer or you? :)

                  My .NET Business Application Framework My Home Page

                  L 1 Reply Last reply
                  0
                  • X Xiangyang Liu

                    leppie wrote:

                    - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references...

                    I don't understand how this can be classified as a "coding horror". If you copy VB6 code into a VB.NET (or C#) project and compile it, I am supprised that you did not get more warnings and errors. As we developers know, one syntax error or misspelling could cause tens or hundreds of other errors, which means when you fix one, the others will disappear, too. Coding Horror implies that someone wrote horrible code. In this case, who that someone would be? The VB6 programmer or you? :)

                    My .NET Business Application Framework My Home Page

                    L Offline
                    L Offline
                    leppie
                    wrote on last edited by
                    #9

                    Xiangyang Liu wrote:

                    Coding Horror implies that someone wrote horrible code

                    Or that someone is experience a horror :)

                    Xiangyang Liu wrote:

                    If you copy VB6 code into a VB.NET

                    It was not copy. I used the converter in VS2005, which does a pretty good job, most of the forms actually open in the designer :) Most of the issues seem to be related to either missing libraries and interop stuff. The ActiveX bits and WinForms converted very well.

                    xacc.ide
                    The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                    R 1 Reply Last reply
                    0
                    • L leppie

                      I have been given a VB6 project to upgrade to C# :(( :sigh: :( [update] VB6 to VB.NET conversion ======================== - 400 Upgrade warnings - 100 Compiler errors - 2 Missing dll references... [update] [update2] VB.NET to C# conversion ======================= - 2064 errors [update2] -- modified at 6:29 Monday 22nd October, 2007 -- modified at 11:20 Monday 22nd October, 2007

                      xacc.ide
                      The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #10

                      Don't forget that most of those warnings will be in the form of, "this function doesn't exist anymore. You've got to write your own" types of warnings.

                      Deja View - the feeling that you've seen this post before.

                      1 Reply Last reply
                      0
                      • L leppie

                        Xiangyang Liu wrote:

                        Coding Horror implies that someone wrote horrible code

                        Or that someone is experience a horror :)

                        Xiangyang Liu wrote:

                        If you copy VB6 code into a VB.NET

                        It was not copy. I used the converter in VS2005, which does a pretty good job, most of the forms actually open in the designer :) Most of the issues seem to be related to either missing libraries and interop stuff. The ActiveX bits and WinForms converted very well.

                        xacc.ide
                        The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                        R Offline
                        R Offline
                        RGSeeds
                        wrote on last edited by
                        #11

                        VB6 -> C# ... Does the converter fix all the optional parameters from the VB6 code? I've never used it myself :-O . If not you'll likely have a bunch of Type.Missing's to add

                        1 Reply Last reply
                        0
                        • L leppie

                          I think the application has less lines of code than errors, so yes I am pushing for a fresh C# app :)

                          xacc.ide
                          The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."

                          V Offline
                          V Offline
                          Vasudevan Deepak Kumar
                          wrote on last edited by
                          #12

                          leppie wrote:

                          so yes I am pushing for a fresh C# app

                          Good Move! Rather than suffering sick with the horrible VB! :mad:

                          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                          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