NEW - Where to start from ??

  • Thread starter Thread starter Waleed Seada
  • Start date Start date
W

Waleed Seada

Hi all
I am new to C#
I read the 'Oreilly.Programming.C.Sharp.3rd.Edition.eBook-LiB'
I also finish 6 CD's of the learnkey
I used to use PowerBuilder as a developing Tool, I need to know the same
things about C#

I need to build my first application, Where to start from ??
Thanks
/WS
 
hi,
You have finished a book AND 6 CDs and havnt written your first program yet
??? :-)

Well, first you need to download .net framework SDK, which will be the
runtime. The current version is 1.1. get it from :
http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4070-
9f41-a333c6b9181d&displaylang=en
Install it. Once u r done installing it, you create a new blank text file
and type (or copy paste) the following:

//----START
using System;

namespace NHello
{
class Cintro
{
public static void Main()
{
Console.WriteLine ("hello world & behold!!!!! This is my first ever
coolest C# managed assembly.");
}
}
}

//----END

save it as firstflight.cs. Now you need to pass this file's name as a
"command line argument" to the C# compiler which is called csc.exe. Its
located inside your windows directory (%windir%), inside the
"Microsoft.NET\Framework\v1.1.4322" folder. Open a command prompt and goto
that folder with whatever means possible. and type:
csc firstflight.cs
if you saved your firstflight.cs inside the same folder as csc.exe the above
statement will compile and produce a firstflight.exe which you can run from
the same command prompt.

Here you go, you have just made your first .net managed application.

I hope that helps,
Ab.
http://joehacker.blogspot.com.
 
I am Sorry .... I haven't explain myself correctly
What I mean is I have built many frameworks in PowerBuilder, and I want to
do the same in C#
So, What is short and correct way to do the same in C# ....

Thanks
/WS
 
:-)
when you say "framework" what do you mean exactly? Cuz what now you are
working is called a ".net framework". Do you mean some class library sort of
thing?

Ab.
 
Yes, I mean class library for my application(s) to work using it, for
example the printing functionality is done in one class and exposed to all
the application(s)

/WS
 
Ok, for that you need to explore "class libraries". They compile into dll
files and can be called from all other .net assemblies (exe as well as other
dlls). Basically they are combination of bunch of namespaces (depends on how
many you create) which contains bunch of classes as you write them. They are
very easy to make and very easy to use into other apps.

If you need any more help writing those this group can help.

Ab.
 
Yes, I would like someone to show me the way, sort of an example or
something, then I will continue
/WS
 
Back
Top