473,404 Members | 2,137 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,404 software developers and data experts.

Visual Studio

To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================
Nov 1 '06 #1
8 2187
Visual Studio opens files from your file system, just like Word does. They
are not "in" Visual Studio.

--
HTH,

Kevin Spencer
Microsoft MVP
Short Order Coder
http://unclechutney.blogspot.com

The devil is in the yada yada yada
"HELLO $$$" <fa***@alphalink.com.auwrote in message
news:45**********@news.chariot.net.au...
To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================

Nov 1 '06 #2

"HELLO $$$" <fa***@alphalink.com.auwrote in message
news:45**********@news.chariot.net.au...
To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================
Are you talking about deploying a completed project to other computers for
use?
If so, please see Setup and Deployment under "Other Project Types" in the
New Project dialog.
You may also want to research "Xcopy deployment".

http://msdn2.microsoft.com/en-us/library/wx3b589t.aspx

http://msdn2.microsoft.com/en-us/library/54cw8ks0.aspx

Nov 1 '06 #3
If you mean how to start your programs outside visual studio, then locate
your executable and run it from disk.
It will be located where you have your project (which is under My
Documents\Visual Studio 2005\Projects if you created the project in its
default location). Inside your project directory browse to bin\debug or
bin\release. You should find a .exe-file that you can run directly.

On Wed, 01 Nov 2006 06:53:17 +0100, HELLO $$$ <fa***@alphalink.com.au
wrote:
To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================



--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 1 '06 #4
When I write a code I usually save it on the root of "c", to be easily
identified. The code written usually contain many files (one of them has
..exe)on the root of C. I did a copy to these files on a disk.Then every time
Itry to operate such code(by clicking the .exe) the program does not
operate, or shows the black background output and I read "click any key to
continue". When I do so everything disappears as if nothing happened !!!!
Are there something in customizing the program or other thing I must do???!
Thanks
++++++++++++++++++++++++++++++++

"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
If you mean how to start your programs outside visual studio, then locate
your executable and run it from disk.
It will be located where you have your project (which is under My
Documents\Visual Studio 2005\Projects if you created the project in its
default location). Inside your project directory browse to bin\debug or
bin\release. You should find a .exe-file that you can run directly.

On Wed, 01 Nov 2006 06:53:17 +0100, HELLO $$$ <fa***@alphalink.com.au>
wrote:
To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================



--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 2 '06 #5
The compiled executable should be found in <project folder>\bin\debug or
<project folder>\bin\release

What do you mean by the program does not operate? "Click any key to
continue" is added by Visual Studio if you run the program using Ctrl+F5
(Start without debugging) and is not part of the actual program.

Try using this code to test your program. It will write Hello World to
the screen and then wait for a key press.

static void Main()
{
System.Console.WriteLine("Hello World");
System.Console.ReadKey();
}

On Thu, 02 Nov 2006 03:42:27 +0100, HELLO $$$ <fa***@alphalink.com.au
wrote:
When I write a code I usually save it on the root of "c", to be easily
identified. The code written usually contain many files (one of them has
.exe)on the root of C. I did a copy to these files on a disk.Then every
time
Itry to operate such code(by clicking the .exe) the program does not
operate, or shows the black background output and I read "click any key
to
continue". When I do so everything disappears as if nothing happened !!!!
Are there something in customizing the program or other thing I must
do???!
Thanks
++++++++++++++++++++++++++++++++

"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
If you mean how to start your programs outside visual studio, then locate
your executable and run it from disk.
It will be located where you have your project (which is under My
Documents\Visual Studio 2005\Projects if you created the project in its
default location). Inside your project directory browse to bin\debug or
bin\release. You should find a .exe-file that you can run directly.

On Wed, 01 Nov 2006 06:53:17 +0100, HELLO $$$ <fa***@alphalink.com.au>
wrote:
>To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================





--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 2 '06 #6
Please write the code complete and tell me what's type oof template I
choose.
Thank you Morten.
=============================
"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
The compiled executable should be found in <project folder>\bin\debug or
<project folder>\bin\release

What do you mean by the program does not operate? "Click any key to
continue" is added by Visual Studio if you run the program using Ctrl+F5
(Start without debugging) and is not part of the actual program.

Try using this code to test your program. It will write Hello World to
the screen and then wait for a key press.

static void Main()
{
System.Console.WriteLine("Hello World");
System.Console.ReadKey();
}

On Thu, 02 Nov 2006 03:42:27 +0100, HELLO $$$ <fa***@alphalink.com.au>
wrote:
When I write a code I usually save it on the root of "c", to be easily
identified. The code written usually contain many files (one of them has
.exe)on the root of C. I did a copy to these files on a disk.Then every
time
Itry to operate such code(by clicking the .exe) the program does not
operate, or shows the black background output and I read "click any key
to
continue". When I do so everything disappears as if nothing happened !!!!
Are there something in customizing the program or other thing I must
do???!
Thanks
++++++++++++++++++++++++++++++++

"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
If you mean how to start your programs outside visual studio, then locate
your executable and run it from disk.
It will be located where you have your project (which is under My
Documents\Visual Studio 2005\Projects if you created the project in its
default location). Inside your project directory browse to bin\debug or
bin\release. You should find a .exe-file that you can run directly.

On Wed, 01 Nov 2006 06:53:17 +0100, HELLO $$$ <fa***@alphalink.com.au>
wrote:
>To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================





--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 2 '06 #7
Creating a new project (File->New->Project), calling the application
ConsoleApplication2 and using C:\Projects\2.0 as the project base folder.
Select C#->Windows->Console application as the teamplate. You should end
up with a code file called Program.cs containing this piece of code

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
}
}
}

Add the following two lines making Program.cs look like this

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadKey();
}
}
}

Hit F5 to run the program and verify that you get a black window with
"Hello World" written in it, and that the window closes when you hit a
(regular) key.

If I open an explorer window and browse to
C:\Projects\2.0\ConsoleApplication2 I will find another
ConsoleApplication2 folder and two files which stores the location of
other project files etc used by Visual Studio.

Browsing to this folder I will find ConsoleApplication2.exe which is the
name of my project + .exe. This is the compiled program. You can change
the name for the output file in visual studio if you like, or just rename
the file later on. This file can be copied anywhere, sent to friends etc.

The other .exe file ConsoleApplication2.vshost.exe is a Visual Studio file
and can be ignored.

The ConsoleApplication2.pdb is a debug information file. This will give
filename information and line numbers in case of an error. For instance,
if you change Main to the code below you can try running the file from a
command prompt (or else you won't have time to see the error before the
window closes) before and after deleting the pdb file (don't worry about
deleting the file, it will be recreated next time you compile your program
in visual studio).

static void Main(string[] args)
{
throw new InvalidProgramException("Help!");
}

The result should be like this with the pdb-file present

Unhandled Exception: System.InvalidProgramException: Help!
at ConsoleApplication2.Program.Main(String[] args) in
C:\Projects\2.0\Console
Application2\ConsoleApplication2\Program.cs:line 11

Without the pdb-file

Unhandled Exception: System.InvalidProgramException: Help!
at ConsoleApplication2.Program.Main(String[] args)

--
Happy Coding!
Morten Wennevik [C# MVP]
Nov 2 '06 #8
Hi Mortin, Idid all but theseerrors appeared.
By the way I am beginner studying C++.
Errors are:
Error 1 A using clause must precede all other namespace elements except
extern alias declarations
C:\ConsoleApplication2\ConsoleApplication2\Program .cs 14 1
ConsoleApplication2
Error 2 A using clause must precede all other namespace elements except
extern alias declarations
C:\ConsoleApplication2\ConsoleApplication2\Program .cs 15 1
ConsoleApplication2
Error 3 A using clause must precede all other namespace elements except
extern alias declarations
C:\ConsoleApplication2\ConsoleApplication2\Program .cs 16 1
ConsoleApplication2
=================================

"HELLO $$$" <fa***@alphalink.com.auwrote in message
news:45**********@news.chariot.net.au...
To those who are familiar to MS Visual studio :
I have recently Visual Studio 2005.
Please can any body tells me , when I write a code:
How can I separate the files of such code from the Studio program and
operate it away from mother program (Studio).
Thank you.
=============================

Nov 3 '06 #9

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

Similar topics

1
by: angelag | last post by:
I am currently taking a college course in Visual Basic.Net and I am a beginner. I bought Visual Studio.Net 2003 to do my homework at home. I built my first project and e-mailed it to myself at...
0
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
1
by: Daniel A. Thomas | last post by:
License required Maybe you don't have this but have one of the products that qualifies for the upgrade such as ... Visual Studio .NET 2003 Professional Visual Studio .NET 2003 Professional...
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
0
by: marathoner | last post by:
I am currently migrating my Visual C++ 6.0 applications to Visual Studio 2005. I am getting compiler errors involving the VS2005's platform SDK. When I removed directory references to that SDK,...
2
by: Cramer | last post by:
So, what is the relationship between Visual Studio and Visual Web Developer. I find a lot of documentation on MSDN that presents Visual Web Developer as it's own stand-alone product (which I'd...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
3
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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.