473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 1233
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.