Results 1 to 8 of 8

Thread: Getting used to VB .NET

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    5

    Getting used to VB .NET

    so i downloaded the 2005 beta environment for VB .NET
    i LOVE the new environment, however, i notice that the code structure has changed a bit
    im a really ruster programmer as ive not used vb in a little less than a year
    i opened up some a of my old vb6 projects and im seein that vb .net doesnt like the old vb6 code - keeps saying it has all these errors and whatnot

    is there a significant difference between the 2 in the way you write code altogether or is it telling me my code is sloppy lol

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Getting used to VB .NET

    VB6 and VB.NET are different. You can't just copy and paste vb6 code into the vb.net ide. You have to convert it to vb.net syntax first. I don't know if VS2005 comes with a vb6 to vb.net upgrade utility.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    5

    Re: Getting used to VB .NET

    Quote Originally Posted by mendhak
    VB6 and VB.NET are different. You can't just copy and paste vb6 code into the vb.net ide. You have to convert it to vb.net syntax first. I don't know if VS2005 comes with a vb6 to vb.net upgrade utility.
    well i did convert it
    but even with the new code it still gave me errors - thats why im posting this :-\

  4. #4
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: Getting used to VB .NET

    i think it would be great if you will start coding your vb6 code to vb.net style.
    especially in OOP style.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Getting used to VB .NET

    Or if you told us what code is giving you the error. If it's simple you won't need to rewrite it. If it's not simple, you should be rewriting.

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: Getting used to VB .NET

    The upgrading from VB6 to .NET is pretty poor. I haven't heard of anybody who was happy with it, and most people suggest that you start over rather than convert.

    There are two good reasons to start over:

    1) You can do a better job the second time around. It is almost always the case that we understand the problem more throughly once we have solved it once.

    2) You can change the design to a more OO style. This can be pretty big. VB6 did not encourage encapsulation the way .NET does. Now there are real advantages in considering how chunks of data could be encapsulated.

    And one BIG drawback:

    1)TIME!
    My usual boring signature: Nothing

  7. #7
    Fanatic Member
    Join Date
    Jul 2003
    Posts
    830

    Re: Getting used to VB .NET

    Rewrite it. Take my word for it.

  8. #8
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Re: Getting used to VB .NET

    Quote Originally Posted by - joker -
    however, i notice that the code structure has changed a bit
    That's the understatement of the century .

    Quote Originally Posted by - joker -
    is there a significant difference between the 2 in the way you write code altogether or is it telling me my code is sloppy lol
    When you paste VB6 code, VB.Net will bitzch about it - it doesn't matter whether your code is the jewel of VB6 or utter dogzhit. You can almost say that VB.Net is a completely different language than VB6. If you're interested in migrating, the best way to proceed would be to get familiar with the .Net framework and then pick your strategy (use COM interop to leverage old VB6 code or do a rewrite).

    Cheers,
    NTG
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width