954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Please Help on Visual Studio 2005 C#

Hi everybody, I'm so new with Visual Studio 2005!!!! It has bunch of functions that I don't understand on how it works, does anybody have idea on how to debut my code? I wrote a class program that will receive 2 integers from the main methods, but I don't know how to use this sucker to debug my code??? Do I have to add project inside my solution file? Also, how to create the .DLL file? Which I think is needed to debug using main method and reference? I don't get all of these.. please if anybody willing and kind enough to explain to me on how this sucker works :( I'm really desperate.. I wrote codes but don't know how to use the program :(

Monyet
Light Poster
29 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

using System;
using System.Collections.Generic;
using System.Text;
classProgram
{
static void Main(string[] args)
{
string store = StoreLocator.LocateNearestStore(3, 7);
}
}


this is my code for the main method...

Monyet
Light Poster
29 posts since Feb 2007
Reputation Points: 10
Solved Threads: 0
 

Numerous questions. My advice is to read various tutorials on t'internet. I used this site when I was learning:
http://www.samspublishing.com/library/content.asp?b=STY_Csharp_24hours&seqNum=11&rl=1

It's rather brief so some programming knowledge is required, but it gets you going and plenty of sample code.

Here is an MS link about debugging (which is simple, it's really just F5 plus any Breakpoints where you want to see what's happening. Pressing F11 will let you step through with the Breakpoints to see what's being passed into variables etc.

For creating a DLL right click on the project you want, select Properties, click the Application tab, and changte the Output type to Class Library. When you compile that project it will create a DLL. You can then click References and add the newly created DLL.

Rather brief explanations, but you asked rather broad questions. Still hope it helps though.

RwCC
Junior Poster
177 posts since Jan 2006
Reputation Points: 70
Solved Threads: 4
 

Put a break point on the line
string store = StoreLocator.LocateNearestStore(3, 7);
and press F5, press F11 when on this line, and it will take you into your StoreLocator class.LocationNearest method. From there, press F10 to execute to the next line, or F11 when you want to drill into another method.

JerryShaw
Posting Pro in Training
465 posts since Nov 2006
Reputation Points: 69
Solved Threads: 75
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You