Visual Studio .NET question

spamsk8r

Golden Member
Jul 11, 2001
1,787
0
76
I know that Visual Studio .NET has the capability to compile to the Microsoft CLR (Common language runtime) but I was wondering if you can still compile native Windows code with it? I haven't really been able to find anything about this. It seems like that would be a very crippling feature when it comes to powerful languages like C++ to have them not run natively. Can anyone inform me about this?

Thanks,
Geoff
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
Yes, I believe you can. Otherwise, you won't be able to run .net compiled applications on platform with .net framework.
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Of course. Visual Studio will *ALWAYS* support compiling native Windows applications.
 

RemyCanad

Golden Member
Sep 28, 2001
1,849
0
0
It sure does. I have the pro version so if you want me to check anything else out just ask. :)
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Some of these responses seem a bit misleading...

Yes, VS.NET does indeed have the capability of compiling unmanaged (i.e. those that don't target the CLR) code; however, this does not mean that you can code in .NET languages and emit unmanaged (native) code. You'll need to stick with C, unmanaged C++, or VS6 if you don't want to target the CLR.
 

RemyCanad

Golden Member
Sep 28, 2001
1,849
0
0
Originally posted by: Descartes
Some of these responses seem a bit misleading... Yes, VS.NET does indeed have the capability of compiling unmanaged (i.e. those that don't target the CLR) code; however, this does not mean that you can code in .NET languages and emit unmanaged (native) code. You'll need to stick with C, unmanaged C++, or VS6 if you don't want to target the CLR.

"It seems like that would be a very crippling feature when it comes to powerful languages like C++ to have them not run natively"

He is reffering to C++. So we were not misleading. You just added that it cannot be .NET languages.
 

spwango

Senior member
Mar 7, 2001
419
0
0
You cannot (yet--MS Research division is working on a compiler that will do this) compile your C# or managed C++ code into native windows code. If you don't want to use the CLR, stick with Visual Studio 6, IMHO