window in visual studio

I'm not an expert in C++ but i can make a calculator in visual studio. I wanted to advance and try to make a program that actually has a window and doesn't use cmd.I'm trying to find a way to create a window with buttons, I'm trying to use something called a windows form application so I can simply drag and drop. However windows form only exists in c# (sharp) and visual basic. Do i really have to learn another language just to create a window?
You can do it in many ways. For a calculator I'd suggest using Qt - http://www.qt.io/

Alternativly you can use other Graphics library like SFML, SDL etc.
Last edited on
I have like no money...is there a way to use visual studio?
I'm not 100% sure about QT, But it's most likely free when it comes to private use.

The other ones I mentioned are also free, they are just libraries, they don't cost anything. They're basically just a set of functions that you can use to do graphical stuff, control handling (keyboard and joystick) etc.

They can be used on Visual studio perfectly fine, that's what I do. You can just type SFML on youtube and see how it works.
I'll look into it but I think i would preferably use C++ on visual studio since i went through so much trouble to download it. I'm considering learning C# or visual basic just to make a window which is still not preferable. Do you know how to get the windows form application template for C++?
I think i would preferably use C++ on visual studio since i went through so much trouble to download it.

Man, you need to listen more carefully. SFML is written in C++, I've used SFML, C++, and Visual studio together now for over a year. Just take a bit of your time and do some research. SDL Is more C-like. But it is perfectly fine and normal to use Visual studio and SDL AND c++ together.

https://www.youtube.com/watch?v=kAbkFY6lwAY&list=PLHJE4y54mpC5j_x90UkuoMZOdmmL9-_rg

Do you know how to get the windows form application template for C++?

No I do not, but google does.
Last edited on
Sorry my language was a little clumsy in the last post I was trying to say "the basic c++ setup on visual studio". Then I thought that sounded weird so i deleted it then I walked upstairs got some food. Opened like 30 tabs and then I found an SFML extension for visual studio which was cool. Basically i didn't proof read what I wrote. Sorry about that :)

Anyway I figured out how to solve this issue. New project --> visual c++ --> CLR -->empty project

You will get an error message
ignore it

Then go to project --> add new item --> UI --> windows form

http://www.geeksandcleats.com/wp-content/uploads/2014/09/boom-goes-the-dynamite-geeksandcleats.jpg

Thanks for the help
Close of out the Myform.h and then reopen it.


*forgot this part
Incase you didn't know, you can just edit your post by pressing the edit button.
I know i was just in a rush
Topic archived. No new replies allowed.