473,513 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deploying C++

Ben
Hi,

I have a project that uses the c runtime libraries a bit of opengl and
nothing else. If I build the .exe for release using Visual Studio 6 I
can copy the .exe onto Win98,NT and 2K/XP and run it with no probs.

If I build the same .exe using Visual Studio.NET and drop the .exe
onto the above windows platforms I get prompted with errors
complaining that the .exe can't find MSVCP70...dll.

Am I doing something wrong or do I now have to use the deployment
wizard to package up dependencies that didn't exist before?

Yours confused,
Ben.
Nov 16 '05 #1
4 5016
Ben wrote:
Hi,

I have a project that uses the c runtime libraries a bit of opengl and
nothing else. If I build the .exe for release using Visual Studio 6 I
can copy the .exe onto Win98,NT and 2K/XP and run it with no probs.

If I build the same .exe using Visual Studio.NET and drop the .exe
onto the above windows platforms I get prompted with errors
complaining that the .exe can't find MSVCP70...dll.

Am I doing something wrong or do I now have to use the deployment
wizard to package up dependencies that didn't exist before?


No, you're not doing anything wrong - it just happens that the VC6 runtime
DLLs are already present on the machines you've targeted, while the VS7 DLLs
are not.

You need to deploy those VC7 runtime DLLs that your app depends on. Using a
deployment project is probably the easiest way to get them installed
properly, but you're free to use any install tool of your choice. There are
merge modules (Windows Installer) for all of the VC7 runtime libraries that
are installed along with Visual Studio. They get installed into
%bootdrive%\Program Files\Common Files\Merge Modules by default.

-cd
Nov 16 '05 #2
"Carl Daniel [VC++ MVP]" <cp******@nospam.mvps.org> wrote in message news:<Ot*************@TK2MSFTNGP09.phx.gbl>...
Ben wrote:
Hi,

I have a project that uses the c runtime libraries a bit of opengl and
nothing else. If I build the .exe for release using Visual Studio 6 I
can copy the .exe onto Win98,NT and 2K/XP and run it with no probs.

If I build the same .exe using Visual Studio.NET and drop the .exe
onto the above windows platforms I get prompted with errors
complaining that the .exe can't find MSVCP70...dll.

Am I doing something wrong or do I now have to use the deployment
wizard to package up dependencies that didn't exist before?


No, you're not doing anything wrong - it just happens that the VC6 runtime
DLLs are already present on the machines you've targeted, while the VS7 DLLs
are not.

You need to deploy those VC7 runtime DLLs that your app depends on. Using a
deployment project is probably the easiest way to get them installed
properly, but you're free to use any install tool of your choice. There are
merge modules (Windows Installer) for all of the VC7 runtime libraries that
are installed along with Visual Studio. They get installed into
%bootdrive%\Program Files\Common Files\Merge Modules by default.

-cd


If you do not want to be dependent on the compiler dll, link your
project with static lib
By default project uses runtime in DLL, but this can be change in the
project property.

Danderson
Nov 16 '05 #3
Ben
Cheers for the reply Carl - it's a shame I can't choose to link to the
old c runtime libs - my installation's dependency list is unecessarily
large for what I want to do.

"Carl Daniel [VC++ MVP]" <cp******@nospam.mvps.org> wrote in message news:<Ot*************@TK2MSFTNGP09.phx.gbl>...
Ben wrote:
Hi,

I have a project that uses the c runtime libraries a bit of opengl and
nothing else. If I build the .exe for release using Visual Studio 6 I
can copy the .exe onto Win98,NT and 2K/XP and run it with no probs.

If I build the same .exe using Visual Studio.NET and drop the .exe
onto the above windows platforms I get prompted with errors
complaining that the .exe can't find MSVCP70...dll.

Am I doing something wrong or do I now have to use the deployment
wizard to package up dependencies that didn't exist before?


No, you're not doing anything wrong - it just happens that the VC6 runtime
DLLs are already present on the machines you've targeted, while the VS7 DLLs
are not.

You need to deploy those VC7 runtime DLLs that your app depends on. Using a
deployment project is probably the easiest way to get them installed
properly, but you're free to use any install tool of your choice. There are
merge modules (Windows Installer) for all of the VC7 runtime libraries that
are installed along with Visual Studio. They get installed into
%bootdrive%\Program Files\Common Files\Merge Modules by default.

-cd

Nov 16 '05 #4
Ben
Daniel - thanks for the reply - I tried linking my .dll to the c
runtime libs statically (using the /MD switch) but using process
viewer from sysinternals - when I launch my .exe - it launches my .dll
- it still launches MSVCP70..dll's - do you mean I should link my .dll
project into my.exe statically?

Thanks in advance,
Ben.

da*******@opmr.com (Daniel Anderson) wrote in message news:<ae**************************@posting.google. com>...
"Carl Daniel [VC++ MVP]" <cp******@nospam.mvps.org> wrote in message news:<Ot*************@TK2MSFTNGP09.phx.gbl>...
Ben wrote:
Hi,

I have a project that uses the c runtime libraries a bit of opengl and
nothing else. If I build the .exe for release using Visual Studio 6 I
can copy the .exe onto Win98,NT and 2K/XP and run it with no probs.

If I build the same .exe using Visual Studio.NET and drop the .exe
onto the above windows platforms I get prompted with errors
complaining that the .exe can't find MSVCP70...dll.

Am I doing something wrong or do I now have to use the deployment
wizard to package up dependencies that didn't exist before?


No, you're not doing anything wrong - it just happens that the VC6 runtime
DLLs are already present on the machines you've targeted, while the VS7 DLLs
are not.

You need to deploy those VC7 runtime DLLs that your app depends on. Using a
deployment project is probably the easiest way to get them installed
properly, but you're free to use any install tool of your choice. There are
merge modules (Windows Installer) for all of the VC7 runtime libraries that
are installed along with Visual Studio. They get installed into
%bootdrive%\Program Files\Common Files\Merge Modules by default.

-cd


If you do not want to be dependent on the compiler dll, link your
project with static lib
By default project uses runtime in DLL, but this can be change in the
project property.

Danderson

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1587
by: Sean Campbell | last post by:
Hi, My group have a ASP.NET based application ( currently running on 1.0.3705 ). Ideally, we would like to deploy new components(asp files/assemblies/db updates) into a live environment without...
1
1764
by: Terry H | last post by:
Hi I am deploying a winforms app via the windows installer and a VS.Net 2003 setup and deploymnet project. At the moment, I am adding launch conditions for the .Net Framework 1.1 and MDAC 2.7...
1
1729
by: dansan | last post by:
We have a webservice that we have been deploying using the deployment project in Visual Studio. Now we are trying to deploy this service to a server that has multiple sites. I have looked...
2
1329
by: Flip | last post by:
I am deploying webapps using XP (IIS5) and deploying them to a Windows 2003 Server box (IIS6). So far so good. However, when I try to manage my w2k3 server from XP, I get an error message saying...
3
1878
by: Rachel | last post by:
Hi, I am using the data access application block successfully in our development environment, however when I deploy to our testing server as Private Assemblies I keep getting the following ...
4
1629
by: john | last post by:
I think some of the changes to Asp.net are rediculous. Take the ability to deploy source code to production that is compiled on the fly. If this is such a great model, why not distribute your...
10
2122
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
0
1396
by: Dave | last post by:
Hello The application I'm building an installer for uses dlls which were developed originally in C. Since the application itself is developed in C#, these dlls were wrapped using SWIG....
0
1153
by: steve | last post by:
H I new in deploying applications with visual studio 2005. I've used the setup wizard for a project when the user deploys the project I need to now where the user has put it. (path of the...
6
5517
by: Ryan | last post by:
Is there any way to save a VB 2005 created application as an .MSI install file? The only method I see is to publish as a .EXE. Curious because I want to push out an application with Group Policy....
0
7161
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.