473,395 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Deployment with Visual Studio 2005 C++

I am new learning how to use Visual Studio 2005 to program in C++. I
have been having trouble deploying my applications onto another
computer. I also use the Bloodshed Dev C++ compilier and when I
compile my program it creates a exe that I can simply copy onto
another computer and it will run. However, with Visual Studio I must
create a setup project. I have tried using the help system and it
didn't give me simple enough steps for me to complete my setup
project. I am wriing win32 console applications (I just completed an
introduction to C++ course) and according to the help I need to use
the MS Installer to deploy this type of program. What should I use
when I start creating Windows forms applications?

Is there anyone that has been able to create a setup project that
actually works? I could use some advice.

May 31 '07 #1
6 2115
tharris wrote:
I am new learning how to use Visual Studio 2005 to program in C++. I
have been having trouble deploying my applications onto another
computer. [..]
Is there anyone that has been able to create a setup project that
actually works? I could use some advice.
I am pretty sure that there is plenty of people who have successfully
created a setup project. Only this newsgroup is not the right place
to discuss it. Please turn to microsoft.public.vc.* newsgroups (on
'msnews.microsoft.com' server if your ISP doesn't carry them).

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
May 31 '07 #2
tharris <te***********@yahoo.comwrote in news:1180634591.014875.45090
@w5g2000hsg.googlegroups.com:

[snip VC++-specific stuff]
>
Is there anyone that has been able to create a setup project that
actually works? I could use some advice.
You're asking in the wrong place. comp.lang.c++ discusses the Standard C++
language. You want to ask in a Microsoft-specific newsgroup.
May 31 '07 #3
On May 31, 11:03 am, tharris <terrillhar...@yahoo.comwrote:
I am new learning how to use Visual Studio 2005 to program in C++. I
have been having trouble deploying my applications onto another
computer. I also use the Bloodshed Dev C++ compilier and when I
compile my program it creates a exe that I can simply copy onto
another computer and it will run. However, with Visual Studio I must
create a setup project.
VS will create an EXE for you. No setup project required. Just
create a Console App project, put your files in, and compile. The EXE
will be in the debug/ or release/ directory (you'll probably want to
run the release build for your actual release).

Michael

May 31 '07 #4
On Jun 1, 12:26 am, Michael <mchlg...@aol.comwrote:
On May 31, 11:03 am, tharris <terrillhar...@yahoo.comwrote:
I am new learning how to use Visual Studio 2005 to program in C++. I
have been having trouble deploying my applications onto another
computer. I also use the Bloodshed Dev C++ compilier and when I
compile my program it creates a exe that I can simply copy onto
another computer and it will run. However, with Visual Studio I must
create a setup project.
VS will create an EXE for you. No setup project required. Just
create a Console App project, put your files in, and compile.
I don't think it has to be a Console App project. On the other
hand, you will have to ensure that any libraries that are not
bundled with the system are statically linked. This seems to be
a universal problem with C++. On the systems I work on---all
Unix---the C libraries are bundled with the system, and you can
just compile and link with the standard options, and the
resulting executable runs everywhere. The C++ libraries,
however, are NOT bundled (except generally with Linux), and by
default, you will probably end up with them being dynamically
linked. And the program not running on systems where C++ is not
installed.
The EXE
will be in the debug/ or release/ directory (you'll probably want to
run the release build for your actual release).
You probably won't. In practice, you'll probably want to
develop your own list of options, which does something sensible.
The debug options that VS uses aren't really that bad, but the
release options turns off assert's, which means that you
definitly don't want to use them as is in code you deliver.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Jun 1 '07 #5
VS will create an EXE for you. No setup project required. Just
create a Console App project, put your files in, and compile.

I don't think it has to be a Console App project.
Indeed not, but since the OP specified that he was making console
apps, it should be. But yes, if he were making some other kind of
app, that would work too, as long as it were statically linked.
The EXE
will be in the debug/ or release/ directory (you'll probably want to
run the release build for your actual release).

You probably won't. In practice, you'll probably want to
develop your own list of options, which does something sensible.
The debug options that VS uses aren't really that bad, but the
release options turns off assert's, which means that you
definitly don't want to use them as is in code you deliver.
Clearly you don't get the concept of asserts. The whole point is that
you can put in all sorts of anal checks that are useful for you in
developing, but you never want the client to see.

For one thing, you may put in things that slow the program down a
lot. For example, I read that Excel has a version of its
recalculation engine that is really dog slow (several minutes to
recalculate), but is so simple it works every time, and their
production version uses all kinds of fancy algorithms to save time by
doing minimal recalculations (< 1 sec recalc time, typically). They
have various asserts where they run the dog slow version and the
production version and compare that the results match - you wouldn't
want to do that in the shipping version.

For another thing, if an assert fails, the program crashes in a
particularly hideous way. That is not at all appropriate for
production code - at a minimum you should crash cleanly and give the
user a cryptic error message ("An error of type 123 occurred. Click
OK.") Of course, there are even better ways to handle this. See Alan
Cooper's books for details.

Michael

Jun 1 '07 #6
On Jun 1, 7:44 pm, Michael <mchlg...@aol.comwrote:
The EXE
will be in the debug/ or release/ directory (you'll probably want to
run the release build for your actual release).
You probably won't. In practice, you'll probably want to
develop your own list of options, which does something sensible.
The debug options that VS uses aren't really that bad, but the
release options turns off assert's, which means that you
definitly don't want to use them as is in code you deliver.
Clearly you don't get the concept of asserts. The whole point is that
you can put in all sorts of anal checks that are useful for you in
developing, but you never want the client to see.
Clearly YOU don't get the concept of asserts. They're like a
life jacket on a boot. Do you wear a life jacket when the
boot's in the harbor, and take it off when you go to sea.
For one thing, you may put in things that slow the program down a
lot. For example, I read that Excel has a version of its
recalculation engine that is really dog slow (several minutes to
recalculate), but is so simple it works every time, and their
production version uses all kinds of fancy algorithms to save time by
doing minimal recalculations (< 1 sec recalc time, typically). They
have various asserts where they run the dog slow version and the
production version and compare that the results match - you wouldn't
want to do that in the shipping version.
That's a rather extreme case. Especially given that an assert
must be a single expression, without side effects. Still, there
are times when the profiler says you can't. In which cases, you
do something like:

#ifdef PRODUCTION
#define NDEBUG
#include <assert.h>
// critical section...
#undef NDEBUG
#include <assert.h>

The assert.h header was carefully designed intentionally for
this, so that you could just remove the asserts from a single
function, without removing them from the rest of code.
For another thing, if an assert fails, the program crashes in a
particularly hideous way.
And if the condition occurs, and the assert isn't there? The
program crashes sometime later, in just a hideous way. Or
worse, it doesn't crash, and the user doesn't realize that the
results are wrong.
That is not at all appropriate for
production code - at a minimum you should crash cleanly and give the
user a cryptic error message ("An error of type 123 occurred. Click
OK.")
The usual solution here is to wrap the program in a small
script, which captures the error message AND the core dump, and
informs the user in whatever way is appropriate that the error
has occured. For the type of applications I work on, the script
usually restarts the program.

--
James Kanze (Gabi Software) email: ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Jun 1 '07 #7

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

Similar topics

2
by: Felix | last post by:
Out of no where I'm starting to get these problems and my Deployment projects won't build anymore. Does anyone have any idea what's causing this? I've tried copying these files from another...
1
by: rjack | last post by:
I migrated a VS 2003 add-in to VS 2005. The VS 2003 add-in is a COM interface which must continue to be deployed as a COM server. I have added the project output to the deployment package and I set...
0
by: BradleyB | last post by:
Visual Studio 2005 Web Deployment Projects (Beta Preview) Visual Studio 2005 Web Deployment Projects provide additional functionality for building and deploying Web site applications that you...
11
by: Thom Little | last post by:
Create two ASP.NET applications. Run them on the development machine to make sure they are error free. Publish the fist application to the root of a remote webspace. Call a page and see that it...
1
by: vick | last post by:
I installed Visual Studio 2005 Professional Ediction in order to create a 2003 Access Deploymnet package so my client could run the Access system I created on all their computers without having...
10
by: =?Utf-8?B?Q2h1Y2sgUA==?= | last post by:
In a web deployment project I want to encrypt the connection strings. I use to do this with a batch file with something like this. aspnet_regiis.exe -pef "connectionStrings" ..\ -prov...
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
3
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi I have 2 installers for my VB.NET app, one for the client app (exe, dlls, config etc.), one for server components (shared data files, sql express db). I have a few questions relating to the...
0
by: MJDQCD | last post by:
I am trying to deploy an asp app to a localhost on another box. I have never done this and have installed miscrosofts Web deployment tool to aid me in this endevour Here is the relevent piece of the...
0
by: dfrench | last post by:
I have a visual studio 2008 solution(win forms) I have a Deployment project with it to install the software I upgrade the version number on the deployment project and build it When I run this on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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,...

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.