VS Studio / VS.NET Integration

  • Thread starter Thread starter ozbear
  • Start date Start date
O

ozbear

I already have VS Studio.Net 2003 installed.

I have need to compile some vanilla C, not C# programs on the same
PC.

If I install VS Studio will it integrate into VS.NET's IDE (which
I would prefer) or does it have to install its own IDE, editors,
and associated environment? I would prefer to be able to do both
C and C# from within the same IDE.

Regards, Oz
 
VS 6.0 and VS.NET are 2 separate and distinct pieces of software. They can
both be installed and exist side-by-side with each other (install VS 6.0
first and VS.NET after), but they are each used to develop different types
of applications.
 
I use Visual Studio .Net 2003's IDE to write C programs all the time. The
VS.Net IDE is designed to do this...so I wouldn't install VS 6 at all if I
were you.

Besides, what you do think Microsoft is using to write their code?

ShaneB
 
You can use VS.NET to write a C application with or without managed
extensions.

But you can NOT use VS.NET to create anything in VB 6.0 or project types
that are specific to COM (like .ocx's).

VS.NET and VS 6.0 are 2 SEPARATE AND DISTINCT products.
 
He asked about compiling some "vanilla C" code which to me, means simple C
code...not creating COM objects or using VB6. If that is the case, there is
no reason for him to install VS6 from the information he gave.

ShaneB
 
He asked about compiling some "vanilla C" code which to me, means simple C
code...not creating COM objects or using VB6. If that is the case, there is
no reason for him to install VS6 from the information he gave.

ShaneB

Shane,
Correct. I have some vanilla C code I occasionally need to deal
with. No VB, no COM.

But surely I have to install something beyond VS.NET 2003, or does
it have a C compiler hidden someplace that is used on the basis
of a .c .h file extension?

Regards, Oz
 
Depending on your installation, you may or may not have the compiler and
related files (headers, libs, etc...) installed already. The easiest way to
tell is by checking the splash screen. If it shows an icon for "Microsoft
Visual C++ .NET" , it's already installed. If not, you'll have to run
Setup.exe on the installation DVD, select Option 2 (the "Repair, Reinstall,
Install Additional Features..." one), and check the "Visual C++ .NET" (under
"Language Tools") to add it. Anyway....

One it's installed, you can simply follow these steps to create a new
project and add your C/CPP files to it:

Open up VS.Net
Hit CTRL_SHIFT-N (New Project shortcut)
When the New Project dialog opens: Under Project Type, select "VC++
Projects", under Templates, select "Win32 Project"
Enter a project name/location and hit OK
The App Wizard dialog will open. From there, select the type of app
you're creating (Windows or console or whatever), and then enable the "Empty
Project" checkbox so the wizard doesn't generate any files for you.
Click OK

From there, drag your header files, .c, .cpp files to the Project Explorer.
From there, cross your fingers and build your project :)

ShaneB
 
Back
Top