r/visualbasic • • Jul 26 '24

Looking for help with making change to VB6 application

Hi all and hoping this is the rest community for this question! I work for a charity and we have a Database that runs on MS Access on back-end and VB6 on front-end and we are trying to make some changes to the VB6 application but don't have the expertise as the person who built the DB is no longer available to contact and our DB Admin is back end expert. We are ideally looking for someone to show how us the steps needed and we can then replicate. Thanks in advance!

2 Upvotes

27 comments sorted by

View all comments

Show parent comment

2

u/jd31068 Aug 09 '24 edited Aug 09 '24

Indeed, what u/Ok_Society4599 said, if you have the source and any installations of any extra controls used by the original developer then no worries (best case), if you have the installation package <edit: for the app they wrote for you> (if they made one) then anyone helping you might be able to register them manually (this is also fine). There are some that don't allow manual registration. Having said that there are different ways to grab old controls, not guaranteed but there are ways. Using archive.org is one way, just searching around the net. If it is Crystal Reports, I have that already LOL and a few others that I've kept over the years because I'm a data pack rat.

Of course, it is possible that none were used, and the project uses all native controls. That is pretty rare, especially with VB6 as it didn't ship with many included. That is a bridge that needs to be crossed when a dev attempts to set up an environment to work on this codebase.

EDIT: A 3rd party control is a grid, listbox, textbox some type of component added to a form or project that gives the project functionality, whether it is a graphical item or a reporting system (like Crustal Reports I referenced), that it couldn't have using only the controls that came with VB6. I hope that helps explain it a bit better.

1

u/MumofMil Aug 09 '24

Thanks so much, you are all being so helpful and I really appreciate it!! We di use crystal reports - so assuming that means we do use 3rd party controls?

2

u/jd31068 Aug 09 '24

You're welcome, happy to assist. Yes, Crystal Reports is a 3rd party control that allows for print preview in the app and printing reports. One of my most common apps back in the VB6 days was report running / preview apps.

Let me know if you have any other questions, feel free to send me a message, I'm retired.

1

u/MumofMil Aug 10 '24

So appreciated!!! We have two issues with VB6 applications - the other is a registration form which we need to make a few adjustments too but the source code is broken. Do you think there is anything we can do there or will we just need to rebuild the reg form (it is a form which can then be imported directly into the DB to save staff having to re-type in all the info that the client has entered).

2

u/jd31068 Aug 11 '24

Have to see the source to see how broken. There are some decompiler tools available that will attempt to recreate the source from the EXE itself. They're not 100% but likely gets the code much closer than starting a form over, of course depending on the business logic of said form it could be faster to rebuild, if there aren't a bunch of rules for data manipulation that isn't documented anywhere but in the code.