473,504 Members | 13,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting started with SDK

Hi,

Since my home machine is only a P3 800 and I don't want to get
a new one until I really need to, I was wondering if someone knows of
a good tutorial to get started learning about development in .Net.

From what I read on MSDN and elsewhere, I understand that..

- I just need the framework and the SDK (starting with 1.1, it seems
like the SDK no longer includes the framework)

- I can write basic apps in VB.Net or C# in notepad, and just feed the
code to some precompiler that turns the code into language-neutral
bytecode, which is then compiled by the CLR

- the CLR can compile to native code or compile code on the fly (JIT)

Am I correct? Can someone point me to the right direction to write a
"Hello, world!" in VB.Net?

Thank you
Luke.
Jul 21 '05 #1
5 1235
Hi Luke,

Not sure if you need Framework installed if you install the SDK (never
tried in that order).
You only need framework to be able to write .net programs in C# or
vb.net. It includes the compilers and a bunch of other programs that may
be handy at times. The SDK is great because without the helpfiles you
wouldn't get very far. The SDK also includes a few other programs like
ildasm.exe, the il disassembler for viewing .net executables.

You typically write a codefile in notepad (or editor of choice). Then you
compile it in a dos window

csc.exe mycode.cs
vb.exe mycode.vb

This produces mycode.exe from a c# codefile called mycode.cs or vb file
called mycode.vb.
That is all there is to creating programs. Well, this would compile to a
dos program flashing a dos box each time you fire up the program, even if
it was a windows program.

csc.exe /target:winexe mycode.cs

This would create a windows program.

As for a good site for learning to code in vb.net ... I suggest you do a
search on google for vb.net tutorial or similar. You'll get plenty
commercial hits and most are probably for visual studio, but you should be
able to find a view free ones.

I don't know much vb.net but in C# you could do hello world with

class MyClass
{
// your program always needs a Main
public static void Main()
{
System.Console.WriteLine("Hello World");
}
}

or for a windows program using a label

class MyClass : System.Windows.Forms.Form
{
System.Windows.Forms.Label label1;

// the constructor, called when you use 'new MyClass'
public MyClass()
{
label1 = new System.Windows.Forms.Label();
this.Controls.Add(label1);

label1.Text = "Hello World";
}

// this time in Main you attach a messageloop to a new MyClass object
public static void Main()
{
System.Windows.Forms.Application.Run(new MyClass());
}
}
--
Happy Coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #2
On Mon, 06 Dec 2004 11:54:54 +0100, "Morten Wennevik"
<Mo************@hotmail.com> wrote:
You typically write a codefile in notepad (or editor of choice). Then you
compile it in a dos window


Thx a bunch :-) BTW, unless I'm mistaken, the VB.EXE or CSC.EXE
produce bytecode, which is then interpreted at run time by the CRL.
What about performance? Can the compilers be told to generate native
code instead?

Thx
Luke.
Jul 21 '05 #3
On Mon, 06 Dec 2004 12:35:23 +0100, Luke Skywalker <lu**@tatooine.planet>
wrote:
On Mon, 06 Dec 2004 11:54:54 +0100, "Morten Wennevik"
<Mo************@hotmail.com> wrote:
You typically write a codefile in notepad (or editor of choice). Then
you
compile it in a dos window


Thx a bunch :-) BTW, unless I'm mistaken, the VB.EXE or CSC.EXE
produce bytecode, which is then interpreted at run time by the CRL.
What about performance? Can the compilers be told to generate native
code instead?

Thx
Luke.


vb.exe/csc.exe is the compiler and linker producing bytecode or IL
(intermediate language).
This bytecode is converted to native language by the clr when each new
part of the program runs (not everything at once, only necessary parts,
causing programs to start faster than say java bytecode)
This native code will linger in memory causing subsequent starts of the
program to run faster.

You can force the bytecode to be compiled to native using ngen.exe but I'm
a little unsure as to what this does exactly. And the native code
programs should rarely be distributed as they are machine specific (I'm
not even sure the native code is stored in the file).

--
Happy Coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #4
On Tue, 07 Dec 2004 09:33:32 +0100, "Morten Wennevik"
<Mo************@hotmail.com> wrote:
This native code will linger in memory causing subsequent starts of the
program to run faster.


Mmm... So, it means that the original slow-down occurs every time the
user launches the app, not just the very first time a program, or
parts of it, is executed. I'll install the SDK and see how well apps
run on a modest P3.

Thx again
Luke.
Jul 21 '05 #5
Don't worry, it's not that slow. I coded C# on a P2 350/Windows ME just
fine last summer, although I did have 'plenty' memory on it (>300mb).

On Tue, 07 Dec 2004 09:58:15 +0100, Luke Skywalker <lu**@tatooine.planet>
wrote:
On Tue, 07 Dec 2004 09:33:32 +0100, "Morten Wennevik"
<Mo************@hotmail.com> wrote:
This native code will linger in memory causing subsequent starts of the
program to run faster.


Mmm... So, it means that the original slow-down occurs every time the
user launches the app, not just the very first time a program, or
parts of it, is executed. I'll install the SDK and see how well apps
run on a modest P3.

Thx again
Luke.


--
Happy Coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2518
by: Philip Ronan | last post by:
OK, here's my 2p worth: === Q. Why am I getting the error message 'Headers already sent'? A. PHP produces this error message when you try to set a header for a web page after you have already...
1
2300
by: soni29 | last post by:
Hi, I'm going to be starting a project with a friend of mine in C#, we're doing it to learn the language a little better, to get more experience with it. We've already come up with an idea of the...
0
1493
by: cara_little | last post by:
Good Morning, I'm trying to get started with the Enterprise Library to evaluate it and recommend to the rest of the developers in the company. However, I'm having a heck of a time getting started...
0
1679
by: tamdino | last post by:
Please accept my apologies if I am posting this in the wrong place. I am trying to get started using MySQL-Front and I am totally lost. Does anyone know where there is a tutorial for getting...
84
3845
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
6
2174
by: Jack Duijf | last post by:
Hello, I am looking for a person in The Netherlands that is willing to help me getting started with Vb.net. Please send a message to jack@aicn.nl if you can help me getting started with the...
1
4717
by: =?Utf-8?B?Q29kZVNsaW5nZXI=?= | last post by:
I plan to build my own 2008 Server/Hyper-V system and will not be using one of the tested Dell or HP systems from the release notes and could use some pointers as to my assumnptions and answers to...
0
7213
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.