Computer Science Canada

Difference between Visual C++ and C++?

Author:  Cancer Sol [ Sun Mar 10, 2013 5:17 pm ]
Post subject:  Difference between Visual C++ and C++?

What's the difference between them and which one's better? My dad just gave me lots of Visual C++ tutorials he had, and I was just wondering which one was better.
I heard someone saying that Visual C++ codes make programs in a window like Chrome for an example, instead of command prompt, while C++ codes are command prompt only. The c++ codes I make so far are in cmd, so I'm not so sure about that, but is that true though?
Sorry for asking so much, but just also wondering, does this forum support Visual c++?

Author:  Insectoid [ Sun Mar 10, 2013 5:23 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

Visual C++ is not a language, it is an IDE (Integrated Development Environment). It's a collection of tools that makes it easier to write C++ code. Anything you can do in Visual C++ you can do in notepad.

Author:  Cancer Sol [ Sun Mar 10, 2013 5:26 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Insectoid @ 3/10/2013, 5:23 pm wrote:
Visual C++ is not a language, it is an IDE (Integrated Development Environment). It's a collection of tools that makes it easier to write C++ code. Anything you can do in Visual C++ you can do in notepad.


Oh.. how do I make a program in a window not console then? I'm following the ebook tutorial in cprogramming.com, but it only said to make a console project.
My dad said Visual C++ is harder than c++, but I guess it isn't true then Razz

Author:  Insectoid [ Sun Mar 10, 2013 5:29 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

You need to access the Windows APIs to do things like that. This is a pain in the ass though, so there's a bunch of libraries available to make it easier. Have a look at SDL or Allegro for basic graphics stuff. I warn you though- it's pretty tough. This isn't Turing anymore.

Author:  Cancer Sol [ Sun Mar 10, 2013 5:33 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Insectoid @ 3/10/2013, 5:29 pm wrote:
You need to access the Windows APIs to do things like that. This is a pain in the ass though, so there's a bunch of libraries available to make it easier. Have a look at SDL or Allegro for basic graphics stuff. I warn you though- it's pretty tough. This isn't Turing anymore.


So should I do those later when I actually "know" how to program? I just really don't like the look of command prompt, but if I shouldn't do that yet, then I won't until later Razz

Author:  Insectoid [ Sun Mar 10, 2013 6:07 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

The command prompt is your best friend right now.

Author:  Cancer Sol [ Sun Mar 10, 2013 8:40 pm ]
Post subject:  Re: Difference between Visual C++ and C++?

If I made a game and it ran through command prompt, isn't it going to look wierd though? Razz
Just wondering, how do I edit the size of the command prompt window?

Author:  Insectoid [ Sun Mar 10, 2013 9:22 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

In general, you don't. That gets into a whole world of things you probably shouldn't touch right now or bad things will happen.

However, just because you're writing it in notepad and compiling it in a terminal, that doesn't mean a terminal ever has to open in windowed program. The terminal is only there A) if you launch the game from the terminal or B) you read from or write to the terminal. If you write a program that opens a file, reads from it, writes to it, and then closes without doing anything else, and then when it's compiled you click on the exe icon, there will be no terminal. Similarly, if you write a program that opens a window and reads from the keyboard and draws a bunch of stuff on the window (aka, a game), you won't see a terminal window anywhere.

However, don't think you'll be writing games any time soon. C++ is a beast. There's a lot of stuff in it that you need to learn before you'll be anywhere near writing a game.

Author:  Dreadnought [ Sun Mar 10, 2013 9:23 pm ]
Post subject:  Re: Difference between Visual C++ and C++?

Right click the upper border (where the minimize and close buttons are.
Properties -> layout

Author:  Insectoid [ Sun Mar 10, 2013 9:35 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

Or there's that. I thought you meant changing the window size from within the program...

Author:  Panphobia [ Mon Mar 11, 2013 8:17 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

Runescape is run through 'command prompt' check out the game, I don't think it looks weird o:

Author:  Insectoid [ Mon Mar 11, 2013 8:42 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

We're talking about a terminal window, not a command prompt, which is a very broad term.

Author:  Panphobia [ Mon Mar 11, 2013 9:24 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Insectoid @ Mon Mar 11, 2013 8:42 pm wrote:
We're talking about a terminal window, not a command prompt, which is a very broad term.
yea I know what you're talking about, just I am saying what he said in his original question

Author:  Insectoid [ Mon Mar 11, 2013 9:42 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

No, what you're talking about is not even remotely similar to what OP was talking about.

Author:  mirhagk [ Tue Mar 12, 2013 5:27 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

If you use C++/CLI (which is a different set of libraries and tools again, same langauge) you get access to the CLR (.NET), which is what Visual Basic and C# use. You can then tap into all those libraries.

C++ is a crazy beast, and it'll take learning a lot before you can make something visual, which is why turing was created.

If you want to learn a C-style language without having to deal with wierd APIs, and getting things on screen quickly, you can use C#.

Author:  Cancer Sol [ Sat Mar 16, 2013 11:56 am ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Panphobia @ 3/11/2013, 8:17 pm wrote:
Runescape is run through 'command prompt' check out the game, I don't think it looks weird o:

Wow... it's written as a console program?
Sorry about calling it command prompt though, I thought a console application was command prompt, but from what I at least think now, command prompt is a program made as a console application.
I'll just continue learning c++ though Razz I have a pretty good e-book I'm following

Author:  Insectoid [ Sat Mar 16, 2013 1:20 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Cancer Sol @ Sat Mar 16, 2013 11:56 am wrote:
Panphobia @ 3/11/2013, 8:17 pm wrote:
Runescape is run through 'command prompt' check out the game, I don't think it looks weird o:

Wow... it's written as a console program?
Sorry about calling it command prompt though, I thought a console application was command prompt, but from what I at least think now, command prompt is a program made as a console application.
I'll just continue learning c++ though Razz I have a pretty good e-book I'm following


No, he's wrong. Runescape is written in Java. The server is probably a console interface but the client itself is a Java applet which can is designed to run in a browser.


Here's the thing about the console. It exists only for text input and output (it can do graphics, but that's really hard and looks really bad). You type something in, and it spits something out. If you aren't typing something in or spitting something out, you don't need it. Heck, even if you are typing something in and spitting something out, you don't need it since you could just use your own textboxes. It's just the easiest way to do text I/O.

A lot of computers don't even have a desktop. The console window is all they have. Most *nix servers are like this. That doesn't mean the computer is old or weak though. They just exist for a different purpose.

Author:  Cancer Sol [ Sat Mar 16, 2013 2:26 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Insectoid @ 3/16/2013, 1:20 pm wrote:
Cancer Sol @ Sat Mar 16, 2013 11:56 am wrote:
Panphobia @ 3/11/2013, 8:17 pm wrote:
Runescape is run through 'command prompt' check out the game, I don't think it looks weird o:

Wow... it's written as a console program?
Sorry about calling it command prompt though, I thought a console application was command prompt, but from what I at least think now, command prompt is a program made as a console application.
I'll just continue learning c++ though Razz I have a pretty good e-book I'm following


No, he's wrong. Runescape is written in Java. The server is probably a console interface but the client itself is a Java applet which can is designed to run in a browser.


Here's the thing about the console. It exists only for text input and output (it can do graphics, but that's really hard and looks really bad). You type something in, and it spits something out. If you aren't typing something in or spitting something out, you don't need it. Heck, even if you are typing something in and spitting something out, you don't need it since you could just use your own textboxes. It's just the easiest way to do text I/O.

A lot of computers don't even have a desktop. The console window is all they have. Most *nix servers are like this. That doesn't mean the computer is old or weak though. They just exist for a different purpose.

How does it look like when someone uses their own textboxes? I thought all computers had a desktop, but I guess I'm just really inexperienced :/

Author:  Tony [ Sat Mar 16, 2013 3:01 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Cancer Sol @ Sat Mar 16, 2013 2:26 pm wrote:
I thought all computers had a desktop

I think you misunderstand what a computer is. http://en.wikipedia.org/wiki/Computer
Quote:

the embedded computers found in many devices from MP3 players to fighter aircraft and from toys to industrial robots are the most numerous.

Author:  Cancer Sol [ Sat Mar 16, 2013 3:05 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Tony @ 3/16/2013, 3:01 pm wrote:
Cancer Sol @ Sat Mar 16, 2013 2:26 pm wrote:
I thought all computers had a desktop

I think you misunderstand what a computer is. http://en.wikipedia.org/wiki/Computer
Quote:

the embedded computers found in many devices from MP3 players to fighter aircraft and from toys to industrial robots are the most numerous.


I keep forgetting that, I always thought of a desktop computer as a computer, since everybody I know just calls desktop computers a computer lol Razz

Author:  Tony [ Sat Mar 16, 2013 3:19 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Cancer Sol @ Sat Mar 16, 2013 3:05 pm wrote:
since everybody I know just calls desktop computers a computer lol Razz

A desktop computer is also an example of a computer Wink

Author:  Insectoid [ Sat Mar 16, 2013 3:41 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

A textbox is just any box you can put text in. Turing's run window is a textbox (well, in text mode it is). The address bar in your browser is a textbox. Just about anywhere that you type things is a textbox.

Just about any program that run on your computer can be run from the terminal. You don't have to click on the icon. You can launch Chrome, Firefox, Word, Battlefront, whatever from the terminal the same way you launch your homemade c++ programs. The computer doesn't really care.

Author:  Cancer Sol [ Sat Mar 16, 2013 3:45 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Insectoid @ 3/16/2013, 3:41 pm wrote:
A textbox is just any box you can put text in. Turing's run window is a textbox (well, in text mode it is). The address bar in your browser is a textbox. Just about anywhere that you type things is a textbox.

Just about any program that run on your computer can be run from the terminal. You don't have to click on the icon. You can launch Chrome, Firefox, Word, Battlefront, whatever from the terminal the same way you launch your homemade c++ programs. The computer doesn't really care.


So about textboxes though... how is it supposed to look better though? Is the user allowed to just type random stuff in the whole "textbox" program?
I knew what a textbox was, but I thought it was also some kind of program type Razz

Author:  Insectoid [ Sat Mar 16, 2013 3:48 pm ]
Post subject:  RE:Difference between Visual C++ and C++?

well, look at your address bar and tell me that doesn't look better than typing into a console. Again, it's a complicated subject involving libraries and stuff that you're just not ready for yet. Don't worry about it. Doing anything with graphics is probably at least a year away.

Author:  Cancer Sol [ Sat Mar 16, 2013 4:42 pm ]
Post subject:  Re: RE:Difference between Visual C++ and C++?

Insectoid @ 3/16/2013, 3:48 pm wrote:
well, look at your address bar and tell me that doesn't look better than typing into a console. Again, it's a complicated subject involving libraries and stuff that you're just not ready for yet. Don't worry about it. Doing anything with graphics is probably at least a year away.


Haha, alright then Razz
Thanks for helping, everyone!


: