QA.TechInterviews.com - your tech questions answered
Can The .Net Programming Language Do As Much As C++?
With Microsoft's .net becomming popular and more efficient with the internet, I want to know if it is more than just a language made for websites like HTML.
After Irishtek's response:
So does that mean that I can use C++ inside of .net? To me right now, it sounds like .net is like a shell and in it, you can do alot of stuff.
Woops, more accuratly now, does that mean I can use .net's various languages to write apps? Like writting a C++ application INSIDE of .net.
I'll try to help you out...


.NET is a framework upon which several languages (VB .NET, C# .NET, J# .NET) are run.

If you are a C++ and you are making a transition to, let's say, C#, you will see a handful of features that will make your life incredibly easier. C# is managed code where C++ is not. This means that at the end of a method or class or function, C# will handle all the "clean-up", meaning: A) you don't have to worry about it and B) it won't be cluttering up your system resources.

That aside, the .NET framework allows projects to contain code written in any of the .NET languages. That means if you are working on a project as a team and Billy thinks that VB is going to handle the GUI better, then Billy can build the GUI in VB while you write the Data Access Layer in C#.

And, speaking of Data Access Layers, the .NET Framework and Microsoft's Visual Studio have a STRONG relationship with SQL Server for powerful, robust integration of the two in data-driven applications.

And, finally, if you decide to build a website, you can build it in .NET. That means you can write C# or VB to handle all the methods and events in your page.

I love it. But, then again, I use it every day all day so I had better love it!

And, YES! C++ Is a language that is supported by .NET. You could use C++ code in a .NET project.
To avoid some of your confusion:

ASP.NET is .net developement for websites, you have choices to use any .net language you want (there are over 20 I believe, including VB,C#, and Python...)

You can develop windows applications using C# or VB (not sure about other language possibilities)

C++ is portable to any platform.

While .net (windows applications) can be portable even to unix.
Although I'm not a unix person I know that the .net language depends on an Intermediate Language(il) and Common Language Runtime (CLR) that allow it to be protable if something is written for Unix that works with the IL.


To answer your additional question, if you are using asp.net you would use C#, you could use c++ but I don't know why... anyone here have a good reason?
Although consturct are similar C# has a lot more going for it in regards to object oriented programming.

ASP.net give you the freedom to use any .net language for that page

Any class you write in .NET has to be in a sinlge language

However a program can consist of classes each written in a different languages.

I hope I'm not confusing yopu too much...
When you start a .NET file you tell it what language this file will use and it has to be one of the supported languages.
And you can mix n match the languages if you want to.
the .net thing isnt actually a language.

Its more like a developement environment for there suite of languages.

LIke C#, Visual Basic.net

Your question is kinda confusing because u prob. dont know what .net is.

But anyways One thing I noticed about .NET is that it makes it easier to build GUI's.

Vs. using something like the win32 API Where u have to do more coding. IN .Net u can just drag crap onto a plate and then set options and finally do some coding.

Works excellent with VB.NET very easy to use.
A little tougher using .Net stuff with C++ but it can be quicker to use to make a GUI then win32api. But either way it takes time to learn. And once you know your good to go ;-)

but .Net is not a language so it cant do as much as C++.



-------------------------------------------------------More
If you have MS Visual studio 2003.net it comes with the .net Environment as well C# C++ j# VB and maybe 1 other.

Within that u can use the .net tools.

If you go to College u may be able to get the software for like 5 bucks otherwise its like 200 or more.

.Net is basically tools for developing software. Mainly the Gui.

http://www.informit.com/guides/content.asp?g=dotnet&seqNum=4&rl=1
I'll try to help you out...


.NET is a framework upon which several languages (VB .NET, C# .NET, J# .NET) are run.

If you are a C++ and you are making a transition to, let's say, C#, you will see a handful of features that will make your life incredibly easier. C# is managed code where C++ is not. This means that at the end of a method or class or function, C# will handle all the "clean-up", meaning: A) you don't have to worry about it and B) it won't be cluttering up your system resources.

That aside, the .NET framework allows projects to contain code written in any of the .NET languages. That means if you are working on a project as a team and Billy thinks that VB is going to handle the GUI better, then Billy can build the GUI in VB while you write the Data Access Layer in C#.

And, speaking of Data Access Layers, the .NET Framework and Microsoft's Visual Studio have a STRONG relationship with SQL Server for powerful, robust integration of the two in data-driven applications.

And, finally, if you decide to build a website, you can build it in .NET. That means you can write C# or VB to handle all the methods and events in your page.

I love it. But, then again, I use it every day all day so I had better love it!

And, YES! C++ Is a language that is supported by .NET. You could use C++ code in a .NET project.

Back to QA. TechInterviews.com. Powered by Yahoo! Answers and TechInterviews.com community.