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. 5 1243
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("Hell o 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.A dd(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.Applicati on.Run(new MyClass());
}
}
--
Happy Coding!
Morten Wennevik [C# MVP]
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.
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]
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.
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] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 started sending out the content of the page.
Web content is always delivered with a few headers at the top, ending with a
blank line. For example, a web page might start like this:
|
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 application to
build, but need advise on how to get started, to share the work? Also
if there are free servers available with sourcesafe, so we can use
that, and just any basic advise on getting started, how to split work.
Thank you.
|
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 and must be missing
something. All of our development is completed in VB. I have installed
Enterprise Library on my machine - however I can't compile the project.
Is the code only available in C#? which means I have to have C#
installed just to...
|
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 started with this
interface?
Thanks,
Tammy
|
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:
Hireability
Portability
Flexibility
The likely candidates seem to be Java, VB.Net, C, C++, C#.
| |
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 Microsoft Developement Enviroment.
Thanks,
|
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 a few questions.
Some getting started with Hyper-V assumptions. Please tell me if I am off
base here.
1. Any recent Intel quad core processor has the needed x64 architecture with
hardware assisted virtualization and data execution protection...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |