We help IT Professionals succeed at work.

VB6 application in Win7

609 Views
Last Modified: 2012-02-10
Hello Experts,

I am just wondering if a basic VB6 application (compiled with setup.exe) would run on a regular Win7 (not XP mode)?

By basic I mean a simple application, which will connect to Quick Books (dll), also to an Access db (ado) it will have a couple of simple forms and it will generate a text file.

Thank you
Comment
Watch Question

Sr. Software Engineer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
APD TorontoSoftware Developer

Author

Commented:
What about compatability mode?

As well, XP mode?
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
You can try, but I don't think VB6 will function in compatability mode either. And QuickBooks does not need (or want) compatability mode. The best course of action would be to upgrade Visual Basic. .... Thinkpads_User
APD TorontoSoftware Developer

Author

Commented:
The problem is that I do not know VB.NET yet, but will be taking a course soon.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
The underpinnings of QuickBooks has been changed to .NET Framework 4. It still works in XP, so you probably need to use XP Mode until you are ready to move ahead.

... Thinkpads_User
Top Expert 2012
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
I was involved in another thread about this and the asker had to move to XP mode to run the application. So while VB6 can be installed, there is no guarantee that any reliant applications will work. Luck if they do. ... Thinkpads_User
Chris RaisinRetired Senior Systems Analyst/Programmer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Top Expert 2009
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Top Expert 2009

Commented:
By the way, my programs are installed at industrial laundries. They gather data via the ArcNet protocol, save it to an SQL or Jet database (customer's choice), display reports, do charting, make PDF files, send email, and a host of other duties. Never had a single installation fail, 32 or 64 bit.

However, the others here are correct. Like me, VB6 is old, tired, and needs replacing. You need to rewrite your programs in .NET as soon as you're able. It won't be long before Microsoft will come out with an OS that refuses to run VB6 programs. Me, I'm only a few years away from retirement, so I'm trying to avoid the conversion and just get outta here.

I've read estimates anywhere from 8 to 18 months per million lines of code to rewrite VB6 to .NET. And don't fool yourself, a "conversion" is not possible, you need to rewrite from scratch.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
VBClassicGuy - Thank you for posting and all the information. I am not a nay sayer, just pragmatic. If it works, by all means use it and go ahead.

But in the original post, the interface was to QuickBooks. QuickBooks is very fragile and very picky. When it works, it works great. When it screws up, it can take the whole machine down with it, and then rebuilding the machine is sometimes the only practical fix.

APD_Toronto - If you try it, , you should do it on a test machine. If it works, great. But if not, you won't have issues with production QuickBooks.  .... Thinkpads_User
Top Expert 2009

Commented:
@thinkpads_user: Thanks for the insights into QuickBooks, I did not know it was so finicky. Sounds like something ya wanna to be careful with...
Top Expert 2012

Commented:
Your application should *default* to being installed to Program Files or Program Files (x86) for 64 bit versions of Windows, but the user should normally be permitted to install the application wherever he/she chooses.

The best place to store application configuration data is AppData folder (CSIDL_APPDATA...). Create subfolders below them for your data. You'd first create a folder with your company name, then a subfolder below that with the product name. You can create a further subfolder for each subsequent version.

And user-generated data would properly belong under the My Documents hierarchy.

My programs are installed with customized VB6 Setup
and they all run fine under Windows 7 32 AND 64 bit
Chris RaisinRetired Senior Systems Analyst/Programmer
CERTIFIED EXPERT

Commented:
I can't see any system that would refuse to run VB6 programs, so do not worry about that.

Be wary of trying to convert VB6 to VB.Net. It is too work intensive and not worth the effort.

If the program does what it is supposed to do, leave it as VB6 but don't do any enhancements. Rather, re-write the program from the ground up (if you must) in VB.Net.
That will produce a better product rather than trying to convert VB6 programming styles and code into the new .Net format.

I disagree that a VB6 program will run in a Win7 64 bit environment unless it is written for 64 bit operating systems (extremely unlikely).

My, we are getting a plethora of excellent advice from all quarters here!  :-)

Cheers
Chris
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
VB6 is old and unsupported, and I have participated in threads here where applications will not work with it. So, as I noted earlier, it will install, but it is the luck of the draw whether it will be compatible. No guarantees. .... Thinkpads_User

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.