• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

EXTREME NEWBIENESS: How to RUN SOMETHING in VS2005?

Dear Experts,

This is a humiliating question to have to post in public, but:

In VS2005, I have my first test project, and I just want to run it.  However, the only "run-type" option I can find is "debug", which just gives me some warnings.

The project currently consists of two classes.  One is basically a suite of utility methods, and the other does nothing but call one of those methods, for testing purposes.  The Main method is, obviously, in the latter.  

When (out of ignorance and desperation) I hit the green triangular "debug" button, it next goes to a warning in one of the utility methods that I am NOT calling.

I had been able to run a "hello, world" class, but now I'm not sure if I used "debug" to do it...

How do I just say "Run, starting with Main"?

Humiliatingly Yours,
BrianMc1958
0
BrianMc1958
Asked:
BrianMc1958
  • 4
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
Hi BrianMc1958,

Check your project properties for the startup object.

Cheers!
0
 
BrianMc1958Author Commented:
OK.  It says "not set" and the whole page is grayed out.  What did I do wrong?  I TRYING to be a GOOD PERSON!
0
 
Bob LearnedCommented:
Brian,

When you created your project, what project type did you select?

Bob
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
Éric MoreauSenior .Net ConsultantCommented:
It needs to be set to the class you want it to start first
0
 
BrianMc1958Author Commented:
To TheLearnedOne:  Uh, I was afraid you'd ask that.  I don't recall exactly.  I remember there was an option for something like "library / applet", which I didn't take.  I think I took the default, and I think that was something like "Windows Application".

--The UnLearnedOne
0
 
BrianMc1958Author Commented:
To emoreua:  When I go to Project > Properties, the "startup object" is "not set".  I assume I'm supposed to enter the name of the class containing my "Main" method.  But the whole page is grayed out.

Again, I'm a total newbie at VS2005 (or VSAnything), so I'm sure I'm missing something obvious...
0
 
BrianMc1958Author Commented:
Sorry.  I guess I was still in "debug mode".  I hit "stop", and then I could enter the name of my Main class.  Now VS2005 itself is crashing when I try to run.  Is that progress?  I'm not sure.

Thanks to both of you for your help.

--BrianMc1958
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now