Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 109,295 C++ Programmers for FREE! Ask your question and get quick answers from experts. There are 1,221 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



vc++

 
Reply to this topicStart new topic

vc++, silly question

Damage
post 2 Jul, 2008 - 07:50 PM
Post #1


D.I.C Regular

***
Joined: 5 Jun, 2008
Posts: 265


My Contributions


Hi, i know this is probably a stupid question. is visual c++ that comes with visual studio the same as standard c++?
User is offlineProfile CardPM

Go to the top of the page


no2pencil
post 2 Jul, 2008 - 07:54 PM
Post #2


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,939



Thanked 27 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


No, it is Microsoft's C++ complier along with the Visual Studios IDE. Just like when you get a Delphi software suite, you get Borland's C++ compiler.

Someone correct me on this if I'm wrong, but that's how I understand it biggrin.gif
User is offlineProfile CardPM

Go to the top of the page

Damage
post 2 Jul, 2008 - 08:55 PM
Post #3


D.I.C Regular

***
Joined: 5 Jun, 2008
Posts: 265


My Contributions


sooo does this affect the syntax or anything else important?
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 2 Jul, 2008 - 08:57 PM
Post #4


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,939



Thanked 27 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


QUOTE(Damage @ 2 Jul, 2008 - 11:55 PM) *

sooo does this affect the syntax or anything else important?

The syntax no. However you'll need to watch that there are no dependencies in your code, that are only included in the Visual C++ compiler. But this is only if you want your code to be portable.
User is offlineProfile CardPM

Go to the top of the page

Damage
post 2 Jul, 2008 - 09:24 PM
Post #5


D.I.C Regular

***
Joined: 5 Jun, 2008
Posts: 265


My Contributions


ooh good point, didn;t think of that. thanks for the advice
User is offlineProfile CardPM

Go to the top of the page

polymath
post 3 Jul, 2008 - 01:35 PM
Post #6


D.I.C Regular

Group Icon
Joined: 4 Apr, 2008
Posts: 390



Thanked 4 times

Dream Kudos: 500
My Contributions


It is the same. I don't think VC++ has any compiler-specific functions (if it does i have never come across them). Your IDE really shouldn't be a big concern for you, since its really just personal preference on the interface (along with compiler specific functions, which are few and far between). They all compile C++. Your code is what makes the program what it is, not the compiler. All the compiler does is convert it into machine language (basically). You are the programmer, not your computer/IDE.
User is offlineProfile CardPM

Go to the top of the page

NickDMax
post 3 Jul, 2008 - 01:47 PM
Post #7


2B||!2B

Group Icon
Joined: 18 Feb, 2007
Posts: 2,756



Thanked 34 times

Dream Kudos: 525
My Contributions


VC++ should be compatible with standard C++. However in general no two compilers are 100% compatible with each other. Each vendor has their own way of doing this or that.

For the most part VC++ shoudl compile standard C++ code.

HOWEVER the code generated by VC++ is not generally standard C++!!! VC++ has the CLI extensions and tends to try to get you to work with that. CLI is a "managed C++" which extends the syntax of C++ (though operator overloading) and tends to look very alien to C/C++ programmers.

This is often a big source of confusion for people using VC++ -- some people think that the managed extensions are part of standard C++, while others think that VC++ is not really C++ at all.
User is offlineProfile CardPM

Go to the top of the page

polymath
post 3 Jul, 2008 - 07:37 PM
Post #8


D.I.C Regular

Group Icon
Joined: 4 Apr, 2008
Posts: 390



Thanked 4 times

Dream Kudos: 500
My Contributions


in my IDE it says CLR, must be a typo. Also, the CL? is what you use if you need .NET framework with C++ (C++ .NET is one of the not so commonly used .NET extensions).

EDIT: If you select Win32 Console it compiles differently than CLI, so your managed stuff doesn't need to be used. Besides, managed c++ code is only managed when you explicitly say #using <mscorlib.dll>. If you just go to Win32->Win32 Console Application->Empty Project you should be fine

This post has been edited by polymath: 3 Jul, 2008 - 07:39 PM
User is offlineProfile CardPM

Go to the top of the page

Damage
post 3 Jul, 2008 - 07:48 PM
Post #9


D.I.C Regular

***
Joined: 5 Jun, 2008
Posts: 265


My Contributions


so using the win32 console is the best bet if i want to pick up a book and start learning?

Thnks for the input everyone
User is offlineProfile CardPM

Go to the top of the page

polymath
post 4 Jul, 2008 - 08:37 AM
Post #10


D.I.C Regular

Group Icon
Joined: 4 Apr, 2008
Posts: 390



Thanked 4 times

Dream Kudos: 500
My Contributions


Also use Empty Project for now, simpler
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 4 Jul, 2008 - 08:56 AM
Post #11


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,748



Thanked 20 times

Dream Kudos: 2800

Expert In: C, C++, VB, VB.NET, C#, Java, x86 Assembly, Win32 API, Reversing

My Contributions


QUOTE
HOWEVER the code generated by VC++ is not generally standard C++!!! VC++ has the CLI extensions and tends to try to get you to work with that. CLI is a "managed C++" which extends the syntax of C++ (though operator overloading) and tends to look very alien to C/C++ programmers.

You can also compile programs as native code in VS2008.
Although you have to tweak the settings, it can be done.
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 9/6/08 09:31AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month