I need help with C#!

blackhalo15

Booby Pie
Joined
Aug 7, 2003
Messages
209
I'm trying to learn C#, and I went to www.mastercsharp.com, and then went to microsoft and downloaded and installed the .NET Framework Redistributable Package, and then downloaded and installed the .NET Framework Software Development Kit. And then, I took the hello world tutorial, (I wrote everything in notepad, and saved it as "HelloWorld.cs", with quotations, exactly the way www.mastercsharp.com had it.) and when I was finished, I went to command, like the tutorial said. And then I did what the tutorial said to do. I went to cd\, so that way it went to the root of the drive. (C:\) And then I went to "cd csharp", because that's where I saved "HelloWorld.cs", and then I typed csc Helloworld.cs, just like the tutorial said to do, but it didn't compile! I got a message saying, "CSC is not recognized as an internal or external file command, operable program, or batch file. Can someone please explain to me how to do this correctly?
 
Thanks man:) I appreciate it. I'm at my moms work right now, so I can't try that, but when I get home I will.
 
yeah it's what kcwong said about path variables.

if you can't get it done automatically, you can do it (in winXP) by right clicking on My Computer, then selecting "Properties", "Advanced" tab, "Environment Variables" button.

PATH will be in system variables, and you'll need to edit it to add the location of the bin directory (ie c:\cs\bin).

alternatively, there's a command that goes
set path = %path%;"bin location"
or something of the like, that should work for all windows OS
where "bin location" is the location of the bin.

so hope that helps.

this is just how java needs to be set up, as i also have no knowledge of c#
 
Scary that a guy who doesn't know about the search path is going to wade into object oriented programming.
 
Scary that a guy who doesn't know about the search path is going to wade into object oriented programming

Well, you gotta start somewhere, right? ;)

I remember my first computer... its some model of Apple (at the time I had it, and the time I threw it away, I don't even have enough knowledge to find out what model it is), with no HDD, a big box serving as both the keyboard and case, a big green mono-chrome monitor, and a big metal box that is a 5'1/4" disk drive sticking out, connected to the case with a flat cable.

I got it from a relative... with a bunch of disc. I inserted a disc, boot up the machine, see if it is a game or not (natural talent for a little child ;), if it is a game, keep it. I threw all the other discs away. The Apple was no more than a big, bulky game console to me.

And today? I'm a programmer working for a software house selling data security solutions. I'm a jack-of-most-trades, master of a few :lol:

So don't worry, blackhalo15... if you truly love programming, you'll get better at it :D
 
i still didn't know what the path variable meant until last year (after two years of programming).
 
Originally posted by bobgote
i still didn't know what the path variable meant until last year (after two years of programming).
What languages? I mean, if you program in VB, the path variable is not of much use, but it's quite hard using the java sdk without setting the path variable...
 
oh i typed in something someone told me to, but didn't know what it was.

and it was java.
 
Well, thanks to all the replies, but I'm to dumb to figure out any of them:). So I went to a friends brother, and he told me how to navigate using cd\, cd windows\microsoft.net\framework\v1.1.4322, and from there, go to csc c:\helloworld.cs

so, thanks again for the help.
 
Originally posted by blackhalo15
Well, thanks to all the replies, but I'm to dumb to figure out any of them:). So I went to a friends brother, and he told me how to navigate using cd\, cd windows\microsoft.net\framework\v1.1.4322, and from there, go to csc c:\helloworld.cs

so, thanks again for the help.

*gasp*

In that case, you should start with the basis first... see if you can get the text books that university uses for year 1 computer science class. You need some basic knowledge about the software and hardware.

You can't program efficiently without knowing what happens underneath.
 
Books cost money, and that's something I don't get much of. I have a $15 allowance, and no job, because nobody wants to hire a 15 year old for some reason. But I think I know the basics now:)
 
Back
Top Bottom