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

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.
JiriNovotnyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

z3r3Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JiriNovotnyAuthor Commented:
I do not compile any OCXs or DLLs, they are identical on both systems.
0
z3r3Commented:
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 Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

JiriNovotnyAuthor Commented:
OK, how do I exactly do that?
0
z3r3Commented:
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
JiriNovotnyAuthor Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.