Results 1 to 24 of 24

Thread: [RESOLVED] Wich to lean first.

  1. #1

    Thread Starter
    Junior Member madd.hatter8942's Avatar
    Join Date
    Jun 2009
    Location
    Mississippi
    Posts
    23

    Resolved [RESOLVED] Wich to lean first.

    Im new to programming and I want to learn VB but dont know where to start.
    Should I learn Visual Basic 6 first or should I learn .Net 2008 first?

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Wich to lean first.

    Welcome to VBForums

    Definitely go for 2008.

    VB6 was released way back in 1998, and is no longer supported by Microsoft (and before long using it will be virtually pointless, as VB6 programs wont work in future versions of Windows).

    Unless you have an explicit need to use VB6, you shouldn't even consider learning it.

  3. #3
    Super Moderator FunkyDexter's Avatar
    Join Date
    Apr 2005
    Location
    An obscure body in the SK system. The inhabitants call it Earth
    Posts
    7,957

    Re: Wich to lean first.

    .Net is a far better choice. You can download the express version for free and it's an up to date language whereas 6 is now out of date (there's still lot of 6 around but it's all downhill from here.)
    The best argument against democracy is a five minute conversation with the average voter - Winston Churchill

    Hadoop actually sounds more like the way they greet each other in Yorkshire - Inferrd

  4. #4

    Thread Starter
    Junior Member madd.hatter8942's Avatar
    Join Date
    Jun 2009
    Location
    Mississippi
    Posts
    23

    Re: Wich to lean first.

    Quote Originally Posted by FunkyDexter View Post
    .Net is a far better choice. You can download the express version for free and it's an up to date language whereas 6 is now out of date (there's still lot of 6 around but it's all downhill from here.)
    Ive got VB6 Pro. and Enterprise editions, and I also have VS.Net 2008 Pro.,
    I was just wondering wich would be the most suitable choice sence alot of people still dont have the .Net framework.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Wich to lean first.

    Most people have it by now (it is part of Vista and 7, and on Automatic Updates for XP), and those that don't have it can download it easily (via your programs installation package).

    As I said before, VB6 programs wont work in future versions of Windows, so any programs you make in it will need to be re-written in .Net fairly soon.

  6. #6
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: Wich to lean first.

    Yeah I got 3.5 pushed down to some newly fired up latops so it seems that the framework issue will be a thing of the past!

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

    Re: Wich to lean first.

    11 years ago when VB6 came out, most people didn't have the necessary dependency files to run a VB6 program. That didn't stop people from using VB6 and whether someone does or does not have the framework installed yet should not stop you from using VB.NET

  8. #8

    Thread Starter
    Junior Member madd.hatter8942's Avatar
    Join Date
    Jun 2009
    Location
    Mississippi
    Posts
    23

    Re: Wich to lean first.

    Ok, thanks guys. .Net it is!

  9. #9
    Fanatic Member esposito's Avatar
    Join Date
    Sep 2003
    Location
    Perugia, Italy
    Posts
    961

    Re: Wich to lean first.

    Quote Originally Posted by si_the_geek View Post
    VB6 programs wont work in future versions of Windows, so any programs you make in it will need to be re-written in .Net fairly soon.
    What sources of information do you have to say that? Will Windows 7 support VB6 programs as far as you know?
    Since I discovered Delphi and Lazarus, VB has become history to me.

  10. #10
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Wich to lean first.

    Quote Originally Posted by esposito View Post
    What sources of information do you have to say that? Will Windows 7 support VB6 programs as far as you know?
    Considering the Win7 beta and RC1 have the vb6 runtime files, I'd say it's a self source of information. I think everyone here's talking about future version as in the next version after win7 might not have the vb6 runtime files included.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  11. #11
    Fanatic Member esposito's Avatar
    Join Date
    Sep 2003
    Location
    Perugia, Italy
    Posts
    961

    Re: Wich to lean first.

    Quote Originally Posted by JuggaloBrotha View Post
    ...in the next version after win7 might not have the vb6 runtime files included.
    That will be the time when I'll decide to make a generous donation to the ReactOS project.
    Since I discovered Delphi and Lazarus, VB has become history to me.

  12. #12

    Thread Starter
    Junior Member madd.hatter8942's Avatar
    Join Date
    Jun 2009
    Location
    Mississippi
    Posts
    23

    Re: Wich to lean first.

    OK, this may be a stupid question but here goes....Wich is better and wich would you recomend VS Pro. 2005 or 2008?

  13. #13
    Fanatic Member esposito's Avatar
    Join Date
    Sep 2003
    Location
    Perugia, Italy
    Posts
    961

    Re: Wich to lean first.

    Quote Originally Posted by madd.hatter8942 View Post
    OK, this may be a stupid question but here goes....Wich is better and wich would you recomend VS Pro. 2005 or 2008?
    If you develop native software, I would recommend using CodeGear Delphi, as all the .NET versions rely on a huge Framework that the final user must have on his or her machine.
    Since I discovered Delphi and Lazarus, VB has become history to me.

  14. #14
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Wich to lean first.

    Quote Originally Posted by madd.hatter8942 View Post
    Ive got VB6 Pro. and Enterprise editions, and I also have VS.Net 2008 Pro.,
    I was just wondering wich would be the most suitable choice sence alot of people still dont have the .Net framework.
    who are these people? even xp came with the first one, although it was an optional install.

    as for huge framework, you should see the 64-bit one...
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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

    Re: Wich to lean first.

    If the choice is between 2005 and 2008, go with 2008. There are some advantages to that, and no disadvanatages.

    Esposito has a fairly rare situation which makes all the .NET languages unsuitable for what he is doing. He explained that well a few months back in a different thread, but he's still upset that MS followed the .NET path.
    My usual boring signature: Nothing

  16. #16
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: Wich to lean first.

    The correct path in my opinion.

  17. #17
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Wich to lean first.

    considering the runtime is extremely tiny, idont see why they wouldnt include it.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  18. #18
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: Wich to lean first.

    It is strange but maybe it had to do with how .NET was originally envisioned. I reckon after the next version of windows it will be included.

  19. #19
    Junior Member RH-00's Avatar
    Join Date
    Jun 2009
    Location
    Gestalt, Gestalt
    Posts
    17

    Re: Wich to lean first.

    In my experience, VB6 programs tend to run somewhat faster than their .net 3.5 counterparts, I'd say, on average, I saw a 10% improvement in overall performance. Granted, you don't get as many excellent features in Visual Studio 6 as you do in 2008 like the cryptography namespace. So it's really a question of what you're looking for; are you looking for a program that will run fast, or one that's easier to develop with. Since you're a beginner, I'd suggest the latter, in which case, you should go with VB.Net or C# if you feel ... adventurous.

    However, once you start to really know what you're doing, I would pick up something like C++. It may be hard to get started with, and may seem a curious choice when compared to more recent languages, like C#, but C++ gives you pretty much unparalleled amounts of control over what your program does, second only to ASM. The choice, however, is always yours to make.

  20. #20
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: Wich to lean first.

    On average I also feel that 10% of statistics are made up on the spot. This whole x application in y language runs A% faster is nonsense. You don't go to a business manager and say but it runs 10% faster, you tell him you can make it 6 weeks quicker, utilizing the latest security and best networking features.

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

    Re: Wich to lean first.

    90% of statistics are made up on the spot.

    I wrote a program in VB6 that was HIGHLY processor intensive. It took three days to run, and during that time, the only interaction with the HD was a small write operation every minute or so (saving state, in case of a power failure, naturally). I then re-wrote the code in .NET. I had the VB6 project open, so that I could copy what was suitable to be copied, but the code really benefitted from OO design, which VB6 doesn't do, so much of the design changed. Are these two comparable? Only slightly, as the code is not the same, nor should it be. The VB6 program took advantage of VB6 features, while the .NET version took advantage of .NET features. The result was a program that took about three days to run. I then turned Option Strict ON (I did this far enough back that I wasn't aware of Option Strict), fixed all the resulting issues, and turned off Integer overflow checks. The resulting program took two days to run.

    Therefore, a heavily processor dependent program, written in VB6, then re-written for .NET, performed faster in .NET than in VB6, by a significant factor. What does this mean? Nearly nothing. The two programs did the same thing, but I didn't try to run VB6-style code as .NET, and it wasn't possible to run .NET-style code in VB6. There would be no way to do a true apples-to-apples comparison without restricting yourself to looking at very isolated instances. At the whole program level, such comparisons are dubious, at best. After all, VERY few programs are so slow that you can perform side-by-side comparisons of the different languages, and if you have a program, as I did, which takes long enough to measure, the program is also complex enough that writing the same code in the two different languages means that the .NET version will be poorly written, since .NET can mimic VB6, but VB6 can't mimic .NET.
    My usual boring signature: Nothing

  22. #22
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: Wich to lean first.

    Thank you shaggy! That is my sentiment exactly, just more eloquently put.

  23. #23
    Junior Member RH-00's Avatar
    Join Date
    Jun 2009
    Location
    Gestalt, Gestalt
    Posts
    17

    Re: Wich to lean first.

    Quote Originally Posted by DeanMc View Post
    On average I also feel that 10% of statistics are made up on the spot. This whole x application in y language runs A% faster is nonsense. You don't go to a business manager and say but it runs 10% faster, you tell him you can make it 6 weeks quicker, utilizing the latest security and best networking features.
    Unless the manager you're speaking to is in the gaming industry (which I'm not in, but have friends who are), in which case it's something of a mixture between the two. It's one of the reasons I've taken to C++. My case(s) may be atypical, but I only have my own data upon which to make my decisions.

    In the end, I was simply giving an example of my experiences, giving the OP a bit more insight and allowing him to make a better choice for him.

  24. #24
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Wich to lean first.

    Quote Originally Posted by Shaggy Hiker View Post
    .NET can mimic VB6, but VB6 can't mimic .NET.
    just pointing out that there is in fact an addon for vb6 that gives you access to .net. Comes with samples that open .net forms in vb6, etc. By no means is it as easy as just writing it in .net in the first place. It's more of a migration tool.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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