[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Win 7/C++/ side-by-side configuration

Posted on 2010-04-07
5
Medium Priority
?
799 Views
Last Modified: 2013-11-08
Hello
I have a Visual Studio 2008 C++ application I am trying to run a new computer/fresh install of Win7 64 ultimate.
Note: Visual Studio 2008 is NOT installed on the new machine on which I am trying to run the executable.

I get the error below->

"The application has failed to start because its side-by-side configuration is incorrect. Please see the application even log or use the command-line sxstrace.exe tool for more detail."

Do I need to install something like the follwoing on the new machine to allow my executable to work?
                           Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) or
                           Microsoft Visual C++ 2008 Redistributable Package (x64)
Is this built into Win7?

If my executeable was created on a 32bit XP machine, but my new computer is Win7 64 bit.... should I install the 32bit redisribution package or the 64 bit one?

Thank you!
0
Comment
Question by:tobal99z
  • 3
  • 2
5 Comments
 
LVL 23

Expert Comment

by:Stacy Spear
ID: 30105572
Does that machine have all the required .NET libraries installed?
0
 
LVL 23

Expert Comment

by:Stacy Spear
ID: 30105688
Also, did you link to the CRT or have it static?
0
 

Author Comment

by:tobal99z
ID: 30125869
Hello, on the Win7 machine I haven't specially installed anything.
It was my understanding that the .net 3.5 comes "built in" with Win 7.
I will install whatever you guys tell me I should.

Configuration Manager-> Active Solution Platform = Win32

Regarding-> "Also, did you link to the CRT or have it static?"
I'm not sure... Its been a long time since I created this project... I looked under the "Properties Page" but couldn't find the info in there. If it is important, pls tell me where to go and I'll look it up and report back.

I noticed under the properties page/General "Detect 65-bit Portability Issues".This is set as NO.  I wonder if I should set to YES.

Also, is there some configuration setting which I can set it "WIn7"?

Thank you all.
0
 
LVL 23

Accepted Solution

by:
Stacy Spear earned 2000 total points
ID: 30132874
In VS with the project loaded go to the project properties and Configuration properties, c/c++/code generation. Runtime library should be set to multi-threaded not multi-threaded dll (the default). After build the exe will be larger but it should run everywhere.
0
 

Author Closing Comment

by:tobal99z
ID: 31712065
Thank you!!!!!!!!!
0

Featured Post

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.

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

612 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