.NET programming confusion

Robotoer

Member
Nov 9, 2004
39
0
0
I've constantly been seeing Microsoft's promotions for the new .NET stuff they make. What is .NET? Also, in microsoft visual C++2003 and above, how do u use the .NET forms? I know how to program in C++, but i still don't know how to use the new .net features. Can anyone help?
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
.net is a runtime environment. you can use any of a number of languages to create an executable that runs on the .net runtime. go look on microsoft's site on msdn.microsoft.com/net and i'm sure you'll find lots of tutorials.
 

Velk

Senior member
Jul 29, 2004
734
0
0
.net is much like a microsoft version of java. I.e. it produces things that don't run themselves, but get run by the .net runtime so you have theoretically enhanced portability.

I know nothing of the relative technical merits, but at least UIs run at a decent speed in .net (wtf is with java and UIs anyway) so it can't be all bad 8)
 

itachi

Senior member
Aug 17, 2004
390
0
0
Originally posted by: Velk
.net is much like a microsoft version of java. I.e. it produces things that don't run themselves, but get run by the .net runtime so you have theoretically enhanced portability.

I know nothing of the relative technical merits, but at least UIs run at a decent speed in .net (wtf is with java and UIs anyway) so it can't be all bad 8)
simple.. microsoft gears towards language independence, java towards platform.. sun only uses features available on all platforms for their ui. so if windows can do one thing, but linux can't.. they don't include that feature. but seeing that AWT sucked, they started developing a ui that basically rebuilds everything, without using any of the platform resources.
 

sunase

Senior member
Nov 28, 2002
551
0
0
the language independence thing actually does work too. I took a .NET course recently, the professor did all his examples in VB.NET. I liked C# better, however, and was able to do everything in that without any problems.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Only through COM interop, I believe. There isn't actually a switch to generate managed or unmanaged C++ in Visual C++ 2005. If you use the .Net runtime then it generates managed code, otherwise it generates unmanaged. Do get it to generate unmanaged code that still has access to the .Net facilities, I think you need to use the COM wrappers.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: Robotoer
What's the difference between managed code and unmanaged?
Unmanaged code is compiled directly to binary for the type of cpu you're on and runs without the .net framework looking over it's sholder. Managed code is compiled to virtual machine code which is changed to real machine code at run time where the framework can watch to make sure everything's kosher.
 

Robotoer

Member
Nov 9, 2004
39
0
0
wait... unmanaged code is compiled for the cpu that you're running on?... If it's like that wouldn't you havfe to make a version for each set of hardware?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Yes. A native compiler is written to generate machine code for a specific processor or family of processors.
 

itachi

Senior member
Aug 17, 2004
390
0
0
Originally posted by: Robotoer
wait... unmanaged code is compiled for the cpu that you're running on?... If it's like that wouldn't you havfe to make a version for each set of hardware?
nope.. amd and intel both use x86 instruction set (binaries are compatible with one another). with other hardware.. the os kernel has a HAL (hardware abstraction layer) to make it so programs can interact with hardware without having to know who made it.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: itachi
Originally posted by: Robotoer
wait... unmanaged code is compiled for the cpu that you're running on?... If it's like that wouldn't you havfe to make a version for each set of hardware?
nope.. amd and intel both use x86 instruction set (binaries are compatible with one another). with other hardware.. the os kernel has a HAL (hardware abstraction layer) to make it so programs can interact with hardware without having to know who made it.

But he is correct in that an unmanaged (native) program will need to be recompiled for different architecture types (x86, PowerPC, Alpha, SPARC, etc, etc).
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |