Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VC++.Net VS. VC#.NET 4

Status
Not open for further replies.

CubeE101

Programmer
Nov 19, 2002
1,492
US
What exactly is the difference between VC# and VC++?

Is VC# like the VB of C++ (as far as the interface goes)?

Can it compile exe's?

Can it compile VC++6 projects?

I am considering purchasing VC#.NET Standard Edition...

I just want to get a few oppinions before I do so, Since it will be for personal use, and not a company purchase ;-)

I currently own VB6 and VC++6, and I am recieving the Free VB.Net (SE) from the VB@TheMovies offer (See thread222-847037 for details)

However I did submit a request for Visual Studio .Net Pro 2003 at work today...

Is VC# included in Visual Studio .Net?

Okay, Enough playing 21 questions :p
Thanks in Advance,
Josh Stribling

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Visual Studio .NET should contain all the new versions of VB.NET,C++ 7.0 (.NET), J#, C# at least for our version of .NET 2003.

As for the C# i would recomand this to anyone who wants C++ sintax + VB coding style.

If you knw C++ then go with C++ .Net othewise i would go for C# other then VB.NET.

There is more to say but i think that C# is a middle way for both VB and C++ coders in my opinion. I like the C style syntax but C++.NET it's to complicated for me atm since i havent working much in it.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
so, does C# compile to EXE or that .Net Framework, whatever...?

I have heard some rumors that you can not Compile to EXE on VB.Net, is C# like this also, or is that even true about VB?

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
You heard bad. VB.NET and C# generates IL code who it's compiled into almost same executable file structure.

Writing VB.NEt or C# now it's mostly at programmer's wish since they are both generates about same code.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
In .NET you can do almost everything using the following major languages: C++.NET, C#.NET, VB.NET.
As shaddow explained, you can start with C# even if you already know C++,Java or VB.
I could put here the reasons but you can find in the literature about that.
In fact C++.NET is on the top of C# from few points of view but with next releases that will change.
I could say, C# is an ELEGANT language (got something good from C++, got something good from VB, got something good from Java).
Example: if you want to use java I n your C# program then you do:
Add "vjslib" as reference to the project and then:
Code:
java.util.ArrayList ar = new java.util.ArrayList(); //to create an ArrayList like java.
ar.trimToSize(); // call Java method
System.Collections.ArrayList ar2 = new System.Collections.ArrayList(); // to create an ArrayList in C#
ar2.TrimToSize(); // call C# method
The above lines demonstrate the elegance of the .NET and C#.
-obislavu-
 
But, will the IL code run on a PC W/O the .Net Framework installed, as an exe would, or is that the catch? You have to install the Framework...

Also,
Thanks for the replies so far...

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
No, you would have to install the .NET Framework if it doesn't already exist on your target machine. That's one major problem--the framework comes in at about 23MB, and that's on top of whatever your app needs. So shareware-style downloading is problematic.


But yes, once you get the framework installed (relatively easy for a corporate environment), you can compile to .EXEs that run like any other compiled program.

Oh, and C# was designed by the creator of Turbo Pascal, Delphi, and J++, designed with C++ programmers in mind. So it's an offshoot of C++ and Java, but with some Delphi-like features (many of which have ALSO made their way into VB), and of course the IDE features a modern form designer, which most of us identify as 'VB-like'.
 
So if you are a VB programmer, and know C/C++, but don't like the complexity of the VC++ IDE (at least with v6, haven't seen the .net IDE, Yet...) then C# is a good investment.

So in short, it harnesses the power of VC++ with the ease of VB?

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Just don't try to say 'in short' with these sort of things. In short, it's a C++/Java-like syntax layered over the .NET framework and has an excellent IDE. But it's too big a subject to summarize, and believe you've summarized EVERYTHING.

So yes, I'd say it harnesses most of the power of VC++ with even more ease than VB.


If you're going to learn a .NET language, I'd recommend C#, so yeah, get that.
 
Thanks alot, You've been a great help.

Have a round of stars!

One last Question (I'll try to keep this short)...

I have heard that you can convert VB6 projects to VB.Net projects within the IDE...

A) Can you do something similar to this with VC++ 6 and C#
B) and/or VC++.NET

Thanks Again,
Josh

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
A.) No.

B.) VC++.Net basically means VC++ 7. It doesn't have to take advantage of the framework.

It's better to just recode stuff. Even VB to VB.Net. I would never feel comfortable letting something convert my code to another language. Maybe going from Java to J# or C# wouldn't be as bad. But VC++ and C# can have many different purposes in life.
 
Thanks, RiverGuy

That is true...

And from what I have seen, it looks like there are a lot of new features you can take advantage of as well, and replace your old code with some things that were not previously available... Especially for VB.NET

The Docking and Anchoring features will come in handy quite often...

I always hated codeing the controls to Resize/Reposition when you resize a window.

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
I liked the most overriding WinMain and OnPaint event.
The VS editor is far the best one for programming, on designing still has some bugs, controls that disapear from form and a few minor ones.

________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top