d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Iso Help With Microsoft Visual Studio
12Next
Add Reply New Topic New Poll
Member
Posts: 19,514
Joined: Feb 21 2011
Gold: 3,877.57
Jul 4 2012 08:27pm
Anyone know a basic tutorial on how to use this to code?
Such as, where the heck is the compile button and compiling multiple files, etc.
I want to know the basics of using Microsoft visual studio and then decide if I want to buy it or not :O.
Member
Posts: 13,568
Joined: Aug 27 2006
Gold: 2,341.00
Jul 5 2012 03:01am
try to search at youtube:
Microsoft Visual Studio Tutorial
or
C# tutorial ( in first lesson should be some things about MVS)
Member
Posts: 19,514
Joined: Feb 21 2011
Gold: 3,877.57
Jul 5 2012 05:20am
Quote (KoYteCk @ Jul 5 2012 04:01am)
try to search at youtube:
Microsoft Visual Studio Tutorial
or
C# tutorial ( in first lesson should be some things about MVS)


Thank you
Member
Posts: 19,514
Joined: Feb 21 2011
Gold: 3,877.57
Jul 5 2012 05:53am
I think I got the basics down - if you write an empty project, you can write source files and headers.
But when I build the project, I run the .exe that's generated and a cmd box appears with my output. This cmd box flashes away instantly - how do I prolong its existence? In some of the you tube examples, it's "Press any key to exit ... " instead of flashing away.
Member
Posts: 827
Joined: Jan 16 2012
Gold: 0.00
Warn: 10%
Jul 5 2012 08:32am
Just ask for an input on the end of your code if you're in C#. In C++ you can use System("Pause");

This post was edited by StormHasHe on Jul 5 2012 08:33am
Member
Posts: 1,087
Joined: May 2 2005
Gold: 75.00
Jul 22 2012 05:12am
Depending on the programming language you can put commands like system("pause"); or if you goto the dropdown box menu in visual studios and click the debug dropdown box. Inside this list there is "Start without debugging". This will allieviate the need to put any extra lines of code to prevent the cmd promt from closing. This is especially useful when you start using destructors if you want to trace them with output statements as system("pause"); will not show these steps.
Banned
Posts: 2,525
Joined: Jan 2 2012
Gold: 0.01
Warn: 10%
Member
Posts: 809
Joined: Sep 19 2011
Gold: 133.70
Aug 11 2012 01:51am
Quote (ligs @ Jul 22 2012 04:12am)
Depending on the programming language you can put commands like system("pause"); or if you goto the dropdown box menu in visual studios and click the debug dropdown box. Inside this list there is "Start without debugging". This will allieviate the need to put any extra lines of code to prevent the cmd promt from closing. This is especially useful when you start using destructors if you want to trace them with output statements as system("pause"); will not show these steps.


Or just place a breakpoint at the end of the code, before the return of main().
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Aug 11 2012 02:06pm
visual studio 2010 is complete garbage. if anything trail 2008 and get that.

Member
Posts: 6,522
Joined: Jun 5 2008
Gold: 0.00
Aug 11 2012 02:17pm
if you have a student email you can get it for free, same with 2008.


Quote (StormHasHe @ Jul 5 2012 09:32am)
Just ask for an input on the end of your code if you're in C#. In C++ you can use System("Pause");


This is usually bad coding practice because you're telling your whole system to halt

This post was edited by DeadShell on Aug 11 2012 02:17pm
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll