Windows 7 / Windows XP compatibility issues

25 pts.
Microsoft Windows 7
Microsoft Windows XP
Visual Basic 6
I'm using all the VB6 source code from a XP machine on a new Windows 7 machine. The code works fine and builds the .exe. The .exe runs fine on the Windows 7 computer, but will no longer work on an XP machine. In my facility most of my users are still on XP machines. An additional note, if I move the .frms back to the XP machine, they compile fine and the .EXE works fine on the XP machines. My XP is very old and I need to move my development to the Windows 7 machine, help?

Software/Hardware used:
Windows 7 and windows XP

Answer Wiki

Thanks. We'll let you know when a new response is added.

As you have noted, you will probably need to create an EXE file for XP and one for 7. You could have a virtual machine with XP to use it when compiling applications for XP clients.

–I’m new to VB6, where do I instruct VB to build for XP?———-


Your files created by your VB 6.0 software has its exact document path for it to be opened. You have to change the path of the document from your VB program for you to also run in different version of Operating System.

Discuss This Question: 7  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    "--I'm new to VB6, where do I instruct VB to build for XP?---------- " You don't. You will probably have to compile your application on an XP machine, which could be a virtual one.
    85,450 pointsBadges:
  • Yorkshireman
    As Far As I know, only IBMi has a fully abstracted hardware layer so these issues never happen. Given two OS versions from a supplier notorious for not understanding 'Backward compatibility' you will need to maintain an old XP, or provide a virtual one. If the old box is being retired, just leave it to do the odd compile. XP hasn't altered, so it will stay as competent as it ever used to be, even if you now have the faster, brighter W7 to play with. My old copy of professionalwrite can still work faster than I can type. - and it fits on an 820k diskette.
    6,085 pointsBadges:
  • Koohiisan
    You don't need to build VB6 differently for 7 than for XP. Now, there are some things that may be *IN* your VB6 program that could be at fault, such as linking to .NET forms interop modules that aren't registered on that XP system, or trying to use other libraries which you aren't distributing with your app package, but which may already be on your 7 box. In addition, if you use data access via ADO and are on service pack 2 on Windows 7, you may have been bitten by the changes Microsoft made to the ADO component broke my programs and brought production here to a dead stop, so I know firsthand! What issues or error messages are you getting?
    5,045 pointsBadges:
  • Koohiisan
    Sorry, I meant service pack *1* on Windows 7! :/
    5,045 pointsBadges:
  • Riteshnarnaware
    i want to about exe file coding
    10 pointsBadges:
  • Rockeey
    i have exe file but its not working in windows 7. how i make exe file for windows 7?

    20 pointsBadges:
  • Michael Tidmarsh
    Welcome to ITKE, Rockeey! The best idea is to start a new question, so our experts can try to find a solution to your issue.
    65,700 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: