Course description
In this volume, you’ll learn about implementing service processes and application domains in your .NET applications using the System and ServiceProcess namespaces. You’ll see how to take advantage of multi-threading to create fast and efficient processes through the Threading namespace. You’ll learn how to internationalize your .NET application by using the globalization classes. Enhance your user interface with the System.Drawing and System.Text namespaces.
Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.
Meet the expert
Greg Reddick
Gregory Reddick is a consultant who develops applications and websites using .NET. He is an experienced instructor with nearly 20 years of experience teaching instructor-led courses. Greg also worked as a software design engineer on Microsoft Access 1.0.
Video Runtime
161 Minutes
Time to complete
201 Minutes
Course Outline
Module 5
Platform Invoke (30:32)
- Introduction (00:42)
- Using Platform Invoke (01:41)
- Platform Invoke Process (00:36)
- Security (01:57)
- Windows API (00:53)
- Identifying Functions (00:56)
- Dumpbin Example (01:42)
- Creating a Class (00:58)
- Defining Prototypes (01:46)
- Specifying the Library Name (00:26)
- Library Search Order (01:30)
- Specify Entry Point Name (00:51)
- Calling by Ordinal (00:31)
- Specifying the CharSet (01:35)
- Using the Auto CharSet (01:08)
- Specifying the Procedure Type (00:15)
- Specifying the Method Name (00:27)
- Specifying the Parameters (00:50)
- Specifying the Return Type (00:31)
- Examples of Win API Calls (05:27)
- WinUser.H File (05:18)
- Summary (00:22)
Passing and Returning Data (28:06)
- Introduction (00:29)
- Returning Strings from PInvoke (01:33)
- Window Handles (01:22)
- Demo: GetWindowText (04:05)
- Passing a Structure to PInvoke (00:59)
- Demo: GetWindowRect (05:32)
- Using StructLayout Attribute (04:03)
- Demo: RECTUNION (00:26)
- Byte Aligning Structure (02:03)
- Callback Functions (01:02)
- Demo: Callback Function (06:15)
- Summary (00:13)
Marshalling Data (28:38)
- Introduction (00:37)
- Error Handling (Unmanaged) (00:48)
- Why No GetLastError? (00:34)
- Using SetLastError Property (00:45)
- Demo: SetLastError Property (06:59)
- Marshalling (00:38)
- Blittable Types (00:51)
- Using the MarshalAs Attribute (00:53)
- In and Out Attributes (01:01)
- More About Attributes (01:13)
- Demo: Byte Size (06:27)
- Demo: System Menus (07:31)
- Summary (00:16)
Module 6
Calling COM from .NET (29:18)
- Introduction (00:34)
- COM Interop (00:32)
- COM Components (01:55)
- Reference Book (00:22)
- Creating a Runtime Wrapper (01:06)
- COM Type Libraries (00:26)
- Using VS.NET to Create RCW (00:41)
- Tlbimp.exe to Create RCW (00:56)
- Demo: Registering a DLL (03:35)
- Command Line Tools (01:43)
- Using RegEdit (03:03)
- Fine Tuning the RCW (00:17)
- Using a COM Library (01:47)
- Demo: Using a DLL in .NET (01:59)
- Driving Excel from .NET (01:34)
- Demo: Driving Excel (07:45)
- Keeping Excel Invisible (00:32)
- Summary (00:23)
Calling .NET Assemblies (23:25)
- Introduction (00:28)
- Call Managed Code from COM (00:54)
- COM Friendly Classes (01:21)
- Create Type Library (00:26)
- Demo: Credit Card Check (03:43)
- Reviewing the Code (04:37)
- A .NET Library in VB 6 (03:27)
- Running the Code (01:12)
- TypeLibConverter Class (00:35)
- Demo: Assembly to TypeLib (03:36)
- Demo: TypeLib to Assembly (02:41)
- Summary (00:19)
Introduction to Reflection (21:13)
- Introduction (00:31)
- Overview (00:35)
- Assembly Class (01:40)
- Demo: Using Assembly Class (05:07)
- Assembly Attributes (03:30)
- Pseudo-Attributes (01:15)
- Non-Pseudo Attributes (00:27)
- Retrieving Assembly Attributes (00:52)
- Demo: Assembly Attributes (06:50)
- Summary (00:20)