Re: How to compile simple command prompt apps in VC++ .NET like in VC+
From: Victor Bazarov (v.Abazarov_at_comAcast.net)
Date: 02/17/05
- Next message: Rodrigo Corral [MVP]: "Re: Flat File or XML DOM?"
- Previous message: Doug Harrison [MVP]: "Re: EOL Detection (Anyone?)"
- In reply to: Joachim: "How to compile simple command prompt apps in VC++ .NET like in VC+"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Feb 2005 11:43:09 -0500
Joachim wrote:
> I have the following simple program:
> [...]
>
> How can I compile it with Visual Studio C++ .NET 2003? In Visual Studio C++
> 6 it was possible, but how do I do it (if possible) in .NET 2003? Just
> opening this file will not let me compile it in .NET 2003.... Help!
You will have to create a [console app] project for it.
If all you need is to test if some code compiles, it's worth your time to
create a simple "test" project and always have it handy. Need to test
some code? Open the "test" project, paste the code into the single source
file, compile, build, debug... That's what I have for all NG stuff.
If you are only concerned with creating a working program from some text
once and not to worry about it any longer, and you don't need to debug it
or anything fancy, then you could simply use the command-line compiler,
CL. Open the "Visual Studio .NET Tools | V S .NET 2003 Command Prompt",
change to the required directory and do
CL -c yourfile.cpp
(or without -c to also link it).
V
- Next message: Rodrigo Corral [MVP]: "Re: Flat File or XML DOM?"
- Previous message: Doug Harrison [MVP]: "Re: EOL Detection (Anyone?)"
- In reply to: Joachim: "How to compile simple command prompt apps in VC++ .NET like in VC+"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|