Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
In this video I want to talk about some tools that Microsoft included with .NET that you are going to find quite useful now. At first when you look at these things, let me warn you, you are going to take a look at those and you are going to say - I will never use those. Because as .NET is totally new, I can understand you feeling that way, I felt the same way. But as you progress in .NET, these things get real interesting. First of all let's take a look at the ILASM or the MSIL assembler. Now this thing will take a portable executable file and it will generate a portable, executable file from a MSIL assembly language. What this means - it is taking it from MSIL and actually creating the executable file that you can run. Now that's kind of a neat tool but I don't want to concentrate on that one. The ILDASM or the MSIL dis-assembler is the tool that I really want you to pay attention to here. Because this is the one that you can see what's going on inside the intermediate language. And you are going to load an executable file into it and it will show you what's happening with that. When I run the ILDASM, this is the kind of data that I see. Now, I showed you this picture in the previous video, and then I wanted to show you here that if I double click - word counter is the class in this particular application. And if I click on this, it takes me into my class and shows me exactly what the MSIL is doing with it. Now what exactly does this mean? Well we'll talk about constructors later but this is showing me that I have a constructor here that's void. Now, if you've done any Java or other languages, you'll recognize this: void means there are no arguments for the constructor. And also you'll notice here's an integer, right here. And notice the integer's names: total lines, total words, total characters, integer 64 and so forth. How exactly do I use this tool? Well, let me show you, there is a shortcut and the best thing that I know that you can do to find this thing is to go to start>search>search for files and folders, and check for ILDASM. And just go searching for it; now this will find it pretty quick, usually because this got installed with the Framework SDK or with visual studio .NET. Now there are other ways to get to this, you can do start run and if you know where it is and if you have paths set and so forth. I am going to stop my search, double click on ildasm.exe and then notice I get, let me close this, I get this kind of a display. Now what I want to do is click on file>open and I'm going to find an executable file. Now I have thread test, ThreadTest.exe. And so I'm going to open that in here, and notice what it did? It loaded it up, and it's telling me this is my manifest. Ok there is some data and I can see it by double clicking on manifest but notice here's my actual executable file. There is a form, form1, you'll recognize that, then here are two classes that I have in that particular application in that form. Now, notice again here's my constructor that's void, I have three buttons on that form. Ok here's get and set for these buttons. We'll talk about those later. But notice this class, if I expand this class, notice I can say that the class has a constructor that is void. And if I double click on that I can see exactly what's going on inside there, you'll notice that it's inheriting from system object. That's kind of interesting; notice that here is a method that I have inside that class called - do some more work. And inside this method, just for your information, I'm actually printing out some information to put on the screen to let you know that I've opened a second background thread. OK and notice this is where that happens. Load string, second background thread, so what does all this mean? Not a whole lot right now to you, probably. But this is what the actual MSIL code looks like based on what I entered in Visual Basic .NET. So you'll use that later, I just wanted you to see it for now. In the next video we are going to address which language to use, this has been a raging debate since .NET came out, should I learnt VB or should I learn C-sharp and so we'll talk about that next.
| Course: | Microsoft Visual Basic .NET |
| Author: | Mark Long |
| SKU: | 33433 |
| ISBN: | 1932072349 |
| Release Date: | 2003-05-27 |
| Duration: | 6 hrs / 87 lessons |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |