|
-
Apr 30th, 2005, 11:34 AM
#1
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:
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
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:
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.
-
Apr 30th, 2005, 12:00 PM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Apr 30th, 2005, 12:08 PM
#3
Re: Something you VB6 users should know
 Originally Posted by RobDog888
I think your just about the only VB5'er on the Forum?
You have got to be kidding
-
Apr 30th, 2005, 12:20 PM
#4
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Apr 30th, 2005, 12:31 PM
#5
Re: Something you VB6 users should know
Strangely, why do you use vb5.0 instead of vb6.0?
-
Apr 30th, 2005, 12:33 PM
#6
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.
-
Apr 30th, 2005, 12:33 PM
#7
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Apr 30th, 2005, 12:33 PM
#8
Re: Something you VB6 users should know
 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.
-
Apr 30th, 2005, 12:36 PM
#9
Re: Something you VB6 users should know
 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.
-
Apr 30th, 2005, 12:39 PM
#10
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.
-
Apr 30th, 2005, 12:45 PM
#11
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.
-
Apr 30th, 2005, 05:50 PM
#12
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
-
May 1st, 2005, 03:45 AM
#13
Re: Something you VB6 users should know
 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
-
May 1st, 2005, 08:17 AM
#14
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.
-
May 1st, 2005, 09:36 AM
#15
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."
-
May 1st, 2005, 02:46 PM
#16
Member
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.
-
May 1st, 2005, 08:52 PM
#17
Fanatic Member
Re: Something you VB6 users should know
I am 'shocked and appalled' that this could be happening.
Which country ?
PS Do they export ?
-
May 1st, 2005, 09:41 PM
#18
Re: Something you VB6 users should know
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|