?
Solved

VB6 app compiled on Vista doesn't run on Win XP

Posted on 2008-02-11
6
Medium Priority
?
341 Views
Last Modified: 2008-02-12
Hello, I've run into a critical problem:
When I compile VB6 app on Vista, it runs perfectly on Vista, but on Windows XP I get one of the MS "should I send the error report" thing. When I compile the exact same app on Windows XP it runs well on both XP and Vista. What the heck is the problem??! All ideas are appreciated.
0
Comment
Question by:JiriNovotny
  • 3
  • 3
6 Comments
 
LVL 2

Accepted Solution

by:
z3r3 earned 2000 total points
ID: 20870376
It's probably linking to newer ocx files or system dlls which aren't backwardly binary compatible. I wonder if you chose to compile with binary compatibility when compiling and selecting the old XP compiled app as the base would help?
0
 

Author Comment

by:JiriNovotny
ID: 20870506
I do not compile any OCXs or DLLs, they are identical on both systems.
0
 
LVL 2

Expert Comment

by:z3r3
ID: 20870654
No, what i mean is when u compile it creates dependancies and links using the installed ocxs and system dlls. XP and VISTA will have different system files and the link points into these files can differ!

Normally you don't have an issue but this is why we always compile our apps using binary compatibilty when creating our libraries.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 

Author Comment

by:JiriNovotny
ID: 20870692
OK, how do I exactly do that?
0
 
LVL 2

Expert Comment

by:z3r3
ID: 20875587
in the project optons you can choose binary compatibiity. But this is only available if creating activex exe or components (which is how we create all our apps). So if it is a totally stand alone application then I'm guessing you stuck doing compiles on XP.

Also make sure you are running VB6 with elevated priviledges in VISTA, perhaps that s causing an issue. Also ensure you have SP6 (is there a SP6a?) installed when on VISTA. The problem you experiencing may be due to the modified files that were tweaked to help VISTA run precompiled VB6 apps. When you do the compile, it is linking against newer files and this is your issue.

Just as an aside development in VB6 on VISTA means you are going to come across other nasties too so I wouldn't recommend it unless absolutely essential.
0
 

Author Comment

by:JiriNovotny
ID: 20875759
I've copied all the DLL/OCX files from my XP box to VISTA box and the problems diminished. Some 3rd party software have overwritten one of them, that was the source of the problems. Thanks for your help.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

608 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question