Results 1 to 10 of 10

Thread: migrate vb6 to vb.net?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2007
    Posts
    21

    migrate vb6 to vb.net?

    dear all,
    i am a newbie in .net

    i have a small vb6 standalone exe application that uses an online mysql ODBC database at a database server and some online web pages within it. the users are 30 on the client side and are all at distant(far) locations.

    should i migrate from vb6 to vb.net?
    Please guide me about the advantages for such software.

    also i am concerned about the security of the application in .net..
    it seems to be easily decompiled? or de-obfuscated?
    will it still remain an exe in vb.net?

    what should the publishing options be? if i want to keep the .net application on an application server and let users use it via a website?

    thanks in advance.
    regards
    cingo

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: should i shift from vb6 to vb.net?

    Moved to General Developer

    In short - yes

    We seem to have this topic brought up about once every couple of months.

    If you do a search on this, just in this forum section, you will find a number of very, very lenghty threads within which this topic is debated ad nauseum.

  3. #3
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: migrate vb6 to vb.net?

    Dont bump your post like that, it's only been 40 minutes since you created this thread, and since there's no people here that get paid for replying to threads, one just has to wait until someone has time to do so
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  4. #4
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: migrate vb6 to vb.net?

    I'll advice you to migrate to VB.NET (or any other version of Basic) and leave VB6 now, without considering the advantages and disadvantages too much.
    This is because VB6 has been officially discontinued, which means that no new features, upgrades etc. would be available. Some of them might become a must in the future you never know (maybe due to security reasons etc.). You would only be able to work with the set of features already available till now.

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

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

    Re: migrate vb6 to vb.net?

    There are several considerations you'd have to think about to make the decision, but one overshadows the others: Do you expect to be changing the program much in the relatively near future?

    If the program is pretty stable and unlikely to be added to/altered/updated/etc. in the near future, then you might as well stick with VB6. You have a running program and it isn't going to change, so there's no compelling reason to change the language. On the other hand, if this is a work in progress that will be expanded, altered, etc., then you might as well switch to .NET as soon as possible.

    As for your other concerns, they are somewhat less than that one. .NET programs can be decompiled relatively easily. You can use a free obfuscator to make it a little more difficult to decompile, or you can spend big bucks and get a commercial obfuscator that makes the code MUCH more difficult to decompile....or you can think about whether or not your REALLY care. What are you trying to prevent? The possibility that somebody will decompile your program and steal your brilliant algorithm? That's not very likely. Is your program written with secure information hard coded into it? That's not secure in ANY language. For example, about a decade ago, the folks at ID software released the full version of Castle Wolfenstein 3D, which included a hidden maze that had a word at the center of it. The intention was to run a game where the first person to find the word (I think it was Aardwolf) could turn it in to the company for a prize. The game was written in C, and compiled into a binary file, which is as secure as anything VB6 has, yet the contest never got off the ground, as people just used byte editors to snoop the binaries and read the word. If you have secure information in your VB6 app, then the only thing that is protecting you is that people either can't believe you are doing that, or don't care enough to crack your app. In short: Most people don't worry about decompiling because they don't have anything valuable in their code.

    Publishing is easier in VB.NET with ClickOnce than it ever was in VB6, so that is actually one of the stronger arguments for switching. You can publish to a web server, and whenever anyone with a connection runs your app, it can check for updates and update itself automatically.
    My usual boring signature: Nothing

  6. #6
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    Re: migrate vb6 to vb.net?

    I am also shifting to vb.net.
    But as Shaggy Hiker told, if your software is not going to be changed or updated in future, then you can try your new software in vb.net.
    I am also upgrading my application which is in vb6.0 now, to vb.net.
    Because my application is goiing to be changed so many times in future.
    But my application which are completed and not going to be changed, i will not change them for vb.net.
    But its my opinion that you can start your new application in vb.net.
    WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Dec 2007
    Posts
    21

    Re: migrate vb6 to vb.net?

    thanks all for your reply..

    but please tell me about my question

    what should the publishing options be? if i want to keep the .net application on an application server and let users use it via a website?


    i think i will shift now to .net

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: migrate vb6 to vb.net?

    Thread Moved
    Thread Mergered with duplicate and posts cleaned up
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: migrate vb6 to vb.net?

    Quote Originally Posted by cingo
    what should the publishing options be? if i want to keep the .net application on an application server and let users use it via a website?
    http://msdn.microsoft.com/en-us/library/wh45kb66.aspx

    You should read as much of that as possible but the second link, "Choosing a ClickOnce Deployment Strategy", addresses your question.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: migrate vb6 to vb.net?

    Quote Originally Posted by congo
    also i am concerned about the security of the application in .net..
    Yes, security of your source code from reverse engineering is difficult and could be costly.

    Using Reflection one can view source code of an .net exe but you can protect it or at least make it much harder to decide by using an Obfusciator utility to scramble the code. So even if they get to the IL layer its all scrambled or "encrypted". But if a hacker wants your source code of any type project in any language they will get it to varying degrees.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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