Visual C++ 2005 Redistributable Package

B

bzaid

Hi,

I use some standard C++ classes in my Win32 application. Now, the
application require me to redistribute the Visual C++ 2005
Redistributable Package with my application (not just the DLLs). Now C+
+ applications require pre-installation of this packages .Is there a
method to make Visual C++ use static linking of the standard C/C++
Libraries. So I just redistribute the exe only.

Thanks
 
I

Ian Collins

bzaid said:
Hi,

I use some standard C++ classes in my Win32 application. Now, the
application require me to redistribute the Visual C++ 2005

You're asking in the wrong place, try a windows programming group.
 
N

news.aioe.org

The question is not about Win32. It's about the use of the standard C++ libs
with VC++. I want to use them without depending on any DLLs.

Thanks for your reply
 
E

Eberhard Schefold

news.aioe.org said:
The question is not about Win32. It's about the use of the standard C++
libs with VC++. I want to use them without depending on any DLLs.

You need to understand that this is a question solely regarding your
particular development environment, and therefore off-topic here. You
should definitely try in the microsoft.public.vc area of groups.
 
N

news.aioe.org

Thanks and sorry.

Eberhard Schefold said:
You need to understand that this is a question solely regarding your
particular development environment, and therefore off-topic here. You
should definitely try in the microsoft.public.vc area of groups.
 
K

Krice

bzaid kirjoitti:
I use some standard C++ classes in my Win32 application. Now, the
application require me to redistribute the Visual C++ 2005
Redistributable Package with my application (not just the DLLs).

One possible way is another compiler to build the final executable.
I do this using gcc, because for some reason VC++ requires the user to
have .NET installed even the application is console/SDL-based. As a
bonus you learn to write more portable C++ source code:)
 
B

bzaid

bzaid kirjoitti:


One possible way is another compiler to build the final executable.
I do this using gcc, because for some reason VC++ requires the user to
have .NET installed even the application is console/SDL-based. As a
bonus you learn to write more portable C++ source code:)

1- Thanks for reply
2- I found the a solution how to statically link C/C++ Runtime
Libraries to my application in VC++:
Open project properties > C/C++ > Code Generation > Runtime
Library > and select Multi-threaded (/MT).
Native VC++ apps don’t require .NET Framework to be installed.
3- Yes, I agree with you, C++ developer must write portable code, he
should never depend on a compiler specific feature.

Regards,
 
D

Diego Martins

One possible way is another compiler to build the final executable.
I do this using gcc, because for some reason VC++ requires the user to
have .NET installed even the application is console/SDL-based.

????? WTF?
It never happened to me. Perhaps you should review your configuration/
project settings.

Diego
 
J

James Kanze

You need to understand that this is a question solely
regarding your particular development environment, and
therefore off-topic here. You should definitely try in the
microsoft.public.vc area of groups.

Which doubtlessly explains why we had exactly the same problem
with g++ under Solaris in my last job:).

The standard doesn't address the issue, but the problems
inherent with dynamic linking are pretty much the same
regardless of the platform. Don't do it unless you have to (and
can be sure that the client will have the necessary libraries,
in the versions you expect).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,173
Messages
2,570,937
Members
47,481
Latest member
ElviraDoug

Latest Threads

Top