Thunder0ne

I have done a project that is made up by an executable and several DLLs.
I am building the exe with the /MT option and the DLLs with the MD option (release configuration).
I have copied the folder "Microsoft.VC80.CRT" contained in %MY_VCexpress_folder%/\VC\redist\x86 directory in the folder of my application that contains all the binaries such as the exe and the DLLs.
I copied everything in an arbitrary directory on the target computer running under windows XP home edition (the development computer is XP professional) but it didn't work
I found that suggestion here:
http://msdn2.microsoft.com/en-us/library/ms235291(vs.80).aspx
What am I doing incorrectly
Many thanks.



Re: Visual C++ Express Edition Problem deploying an application

nobugz

Mixing CRT linking options like this isn't good. Rebuild your .exe with the /MD option.





Re: Visual C++ Express Edition Problem deploying an application

Thunder0ne

Thanks.
I will try it asap.




Re: Visual C++ Express Edition Problem deploying an application

Thunder0ne

It didn't work.
What shall I look into

Many thanks.




Re: Visual C++ Express Edition Problem deploying an application

nobugz

"It didn't work" requires me to transmorph myself into a collection of electrons, shoot myself across a wire, hope I find your desk, re-materialize myself to get my eyeballs back and look over your shoulder to see what the error message says. Sadly, I don't know how to do that. You're welcome to give it a shot from your end.





Re: Visual C++ Express Edition Problem deploying an application

Thunder0ne

The problem is that I cannot do the test myself since I do not have a machine without visual studio run time environment installed, so I asked somebody else to do the test.
However, a fragment of the error reported is (if I remember this correctly)
"....unable to find MSVCR80.dll...".
This occurs as soon as the application is launched. This error, of course, does not occur on machines that have visual studio express installed or when an application that uses visual studio run time environment was installed using an installation package that was most likely built with the retailed version.
Actually I forgot exactly which dll it was lookoing for but I am sure it is one of the three DLLs contained in the CRT folder that is located in the visual c++ express installation mentioned at the first post in this thread.
Also I tried to install, on the target machine, the following package
http://www.microsoft.com/downloads/details.aspx FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en
but the same error occurred.
By the way, I am building with embedding manifest option enabled for the executable and all the DLLs of the solution.

Many thanks.





Re: Visual C++ Express Edition Problem deploying an application

iccle

It sounds like you have not included the VC redistributable package on the target machine, you can download it from here:
http://www.microsoft.com/downloads/details.aspx FamilyId=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en




Re: Visual C++ Express Edition Problem deploying an application

nobugz

That's the old version, you might need the SP1 version. Another user complained that that download link actually gives you the old version too, I haven't seen that confirmed yet.





Re: Visual C++ Express Edition Problem deploying an application

Thunder0ne

"That's the old version, you might need the SP1 version. Another user complained that that download link actually gives you the old version too, I haven't seen that confirmed yet."
Thanks this is a very good suggestion. I will ask somebody to try it asap.

Many thanks.






Re: Visual C++ Express Edition Problem deploying an application

Thunder0ne

That was it, it worked.

Many thanks.