Results 1 to 18 of 18

Thread: Something you VB6 users should know

  1. #1

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Something you VB6 users should know

    I use VB5, and the most annoying thing I hate when downloading VB6 projects from the internet is when their class modules have this:

    VB Code:
    1. MultiUse = -1  'True
    2.   Persistable = 0  'NotPersistable
    3.   DataBindingBehavior = 0  'vbNone
    4.   DataSourceBehavior = 0   'vbNone
    5.   MTSTransactionMode = 0   'NotAnMTSObject
    6. End

    So for the love of God, please remove these from your class modules because the people who use VB5 can't run the code without getting an error on these lines.

    Another thing is a line in the .vbp files from VB6, which is this:

    Code:
    Retained=0
    Your project will load fine without this line. So remove that as well. However, saving the project in vb6 will put this line back in. So whenever it's ready to be uploaded in a site, remove that line before zipping up your project.

    Also you may wanna think about sticking these in

    http://support.microsoft.com/default...b;en-us;188007

    That way your project is compatible with VB5. Thank you.

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

    Re: Something you VB6 users should know

    I think your just about the only VB5'er on the Forum?
    Does this mean that we can tell all the VB6'ers to make their code compatible with VB.NET?

    I understand your frustration on this but how about just making a small utility that will open those files and remove
    those lines. It could be your own VB5 to VB6 converter program.
    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

  3. #3

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Something you VB6 users should know

    Quote Originally Posted by RobDog888
    I think your just about the only VB5'er on the Forum?
    You have got to be kidding

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

    Re: Something you VB6 users should know

    I'm just saying there is a very limited number of VB5 users on the site. I know you use it and I can only
    remember one other member I came across. Its just a handful of users compared to vb6 users. No offense meant
    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

  5. #5
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Something you VB6 users should know

    Strangely, why do you use vb5.0 instead of vb6.0?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  6. #6
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Re: Something you VB6 users should know

    Jacob,
    With all due respect, and I know you are a talented programmer, and I consider you a kindred spirit as we both have a disdain for VB.NET, but I must agree with RobDog on this. True, there are some folks that use VB5 (I have even seen some folks that use 4 and even 3), but I would say the vast majority of folks on the classic VB forum are using 6.
    I don't think RobDog's suggestion is unreasonable. You know exactly how to modify the VB6 project to make it compatible with VB5, it would seem a relatively simple matter to write a conversion utility. IMHO, the onus is on you, not the folks who put out VB6 projects for downloading.
    "It's cold gin time again ..."

    Check out my website here.

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

    Re: Something you VB6 users should know

    Still, what about writting a utility to open the files for append and remove those lines?
    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

  8. #8

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Something you VB6 users should know

    Quote Originally Posted by dee-u
    Strangely, why do you use vb5.0 instead of vb6.0?
    I had vb5 since highschool when I was 16. I'm 23 now. Now you know why.

  9. #9

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Something you VB6 users should know

    Quote Originally Posted by RobDog888
    Still, what about writting a utility to open the files for append and remove those lines?
    I guess I could write one. Should be simple enough I think.

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

    Re: Something you VB6 users should know

    It should be easy enough for you - it's only a matter of removing specific text from small files (and possibly adding it to the Explorer context menu for VBP files).

    Alternatively you could get a second hand copy of VB6, it's cheap if you can track it down.

  11. #11

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Something you VB6 users should know

    I can get it free at my college in the computer lab. For just being a student at Valencia Community College, you can borrow legally copied MS software to install on your computers at home such as XP Home, XP Pro, Oracle, VS.NET 2003, Windows Server 2003, etc. And they are all burned on blank CD's.

    Hopefully they still have an old version of VS so I can get VB6.

  12. #12
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Something you VB6 users should know

    i have to admit i took a long time to change from vb5, but i wouldn't want to go back, a conversion utility would be simple

    pete

  13. #13
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Something you VB6 users should know

    Quote Originally Posted by westconn1
    i have to admit i took a long time to change from vb5, but i wouldn't want to go back
    I didn't notice the difference

  14. #14

    Thread Starter
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Something you VB6 users should know

    Yes there is very little difference between the two. Just a few more functions that have been added. Class modules now have those annoying 6 lines of code on top. Functions and subs located in class modules are allowed to contain UDT's (User Defined Types), the exe's are a tiny bit bigger (hello world app is 6k on VB5 yet 7k on VB6), and the .vbp file has some extra lines, such as Retained=0, and on rare occasions DebugStartUpOption=0.

    Other than that, they are very similar.

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

    Re: Something you VB6 users should know

    Might I take this opportunity and ask all VB6 users to write their code using entirely vb.net syntax so that I can open them up in VS 2003?

    Which is basically sarcasm for, "There's a reason they are different versions."

  16. #16
    Member
    Join Date
    Mar 2005
    Posts
    38

    Re: Something you VB6 users should know

    hey guys i am real frustrated by the situation out here in my country. you get pirated softwares (visual studio included) here and everybody uses it. there are very few who have a licensed copy. as a result software's sell cheap here and people (most are novice) don't understand the difference. you people need to buy it or get it from colleges and same. the cyber rule in the country is not imposed seriously and this suffers more. hope you guys enjoyed what i just said.

  17. #17
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Re: Something you VB6 users should know

    I am 'shocked and appalled' that this could be happening.

    Which country ?

    PS Do they export ?
    Rob C

  18. #18
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Something you VB6 users should know

    Quote Originally Posted by RobCrombie
    I am 'shocked and appalled' that this could be happening.

    Which country ?

    PS Do they export ?
    Not without violating Import laws.

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