Tech Support > Microsoft Windows > Development Resources > portable executable with visual studio 2005 ?
portable executable with visual studio 2005 ?
Posted by BradPitt on April 22nd, 2007


Hi
i made a quite big project with visual studio (C language)
but if i bring the executable file that vstudio create to another windows xp
platform it doesn't start and an error message tell me to reinstall it..
so how can i create a portable .exe?
The project uses winsock (ws2_32.dll) and only standard dll filled in by
visual studio
Pls help!
Thx


Posted by David Lowndes on April 22nd, 2007


It's likely that your application uses the 'C' run-time library (a
DLL) and it's this that's needed to be installed on the other
computer. You should have the required redistributable as part of the
VS installation.

If you don't have any requirement to use the DLL version of the
run-time you could change your project's settings to use the static
link library and that will probably resolve your immediate issue
without having to ship/install the run-time redistributable.

Dave

Posted by tom87.21@gmail.com on May 1st, 2007


On 22 avr, 17:18, David Lowndes <Dav...@example.invalid> wrote:
A solution is to set in your project properties, in C/C++ > Code
generation, the runtime library to "Multithread" instead of "DLL
Multithread" (Sorry for translation, I've a french version of VS
2005). It will inscrease your EXE size (of around 50kb), but you'ill
can run it on any Windows.



Similar Posts