Jump to content

Is There A difference?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
HI, I was reading a introduction the other day and the guy said he new C++ and Visual C++ and I was wondering is there a difference? I always thought they where the same thing.:confused:
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Visual C++ is C++ along with various Windows libraries, including Managed C++ hooks into .NET.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
OK, so they are the same thing.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#4
dcs

dcs

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 775 posts
I would say that Visual C++ refers to a dialect which includes nonstandard Microsoft language extensions. Meaning: no, they are not the same thing. One would be the language proper (standard C++), and the other would be the Microsoft language extensions. They are not distinct languages, but you might find that Visual C++ code does not compile in gcc or Borland, for example. Or gcc code might not compile in MSVC. Or Borland code might not compile in gcc. Mix and match.

#5
DarkLordoftheMonkeys

DarkLordoftheMonkeys

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
Visual C++ is C++ written in Visual Studio. They are the same language.
Life's too short to be cool. Be a nerd.

#6
dcs

dcs

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 775 posts
Visual C++ - Wikipedia, the free encyclopedia

Going back to when things were more familar to me, things like MFC and OLE are not C++. They happen to be in C++. More recently, C++/CLI is similar: it is not C++, but it is in C++.

Way back, Borland had conio.h and stuff. You still run into people today doing frickin' gotoxy() and clrscr(). These are not C, as in standard C. These are language extensions.

So when someone mentions C++ and Visual C++, I take it that they are drawing such a distinction. Paraphrasing, one might say, "I am familiar with standard C++, but I have also worked with language extensions for Microsoft's compiler". If that is the distinction that is being drawn.

Now certainly someone could take a simplistic perspective and say that Visual C++ will compile standard C++, but that rather goes without saying.

Now given that Visual C++ also happens to refer to an IDE, that could further complicate the statement, "the guy said he new C++ and Visual C++". As with programming itself, context is king. So I really don't know what the guy meant. I've heard many people make similar comments, but the distinctions they are trying to highlight happen to fall flat.

But hopefully this little bit of mental meandering provides food for thought about what such a statement might or might not mean.