June2003June 2003

Windows Server 2003: Discover Improved System Info, New Kernel, Debugging, Security, and UI APIs

There's a lot to say about Windows Server 2003. First of all, it's the first operating system with built-in .NET Framework support, and it's the first 64-bit OS from Microsoft. But wait, there's more! There are lots of new features and APIs in this version as well. For instance, Windows Server 2003 features Hot Add Memory and a number of other arcane new tidbits. There are new APIs for handling threads, directories, and files, and new features like the low fragmentation heap for managing memory and system information. There's vectored exception handling and new UI APIs as well.OS internals expert Matt Pietrek takes a look at the additions he finds most interesting and useful so you'll have a good place to start when you dive into Windows Server 2003. Matt Pietrek

ASP.NET Pipeline: Use Threads and Build Asynchronous Handlers in Your Server-Side Web Code

Fortunately for developers, threading in ASP.NET is a lot easier than it was in ASP. In this article, the author takes a look at threading in the ASP.NET HTTP pipeline, and explains how threads are managed efficiently without the involvement of the developer. The article considers how the common language runtime threadpool is used by ASP.NET to service requests, looks at the pooling mechanisms used for handlers, modules, and applications, and covers both IIS 5.0 and IIS 6.0 and how they differ in their approach to request processing and thread allocation. Finally, how and when to use asynchronous handlers is discussed for developers who still need to use threads in their own applications. Fritz Onion

Zip Your Data: Using the Zip Classes in the J# Class Libraries to Compress Files and Data with C#

Zip compression lets you save space and network bandwidth when storing files or sending them over the wire. In addition, you don't lose the directory structure of folders you Zip, which makes it a pretty useful compression scheme. The C# language doesn't have any classes that let you manipulate Zip files, but since .NET-targeted languages can share class implementations, and J# exposes classes in the java.util.zip namespace, you can get to those classes in your C# code. This article explains how to use the Microsoft J# class libraries to create an application in C# that compresses and decompresses Zip files. It also shows other unique parts of the J# runtime you can use from any .NET-compliant language to save some coding. Ianier Munoz

.NET Remoting: Secure Your .NET Remoting Traffic by Writing an Asymmetric Encryption Channel Sink

As .NET Remoting gains popularity in the enterprise space, it must meet business demands for trustworthy computing. Remoting traffic can be secured when objects are hosted in IIS, but when they aren't hosted in IIS, custom security solutions can be developed to secure them. This article provides an in-depth look at writing channel sinks for .NET. It also details the flow of data through custom channel sinks and explains the kinds of manipulations that can be performed on that data. Stephen Toub

Smart Cleanup: Achieve More Reliable Resource Management with Our Custom C++ Classes

Managing resources in C++ is not easy. When you're unsuccessful, your app can leak all kinds of resources including file system handles, database connections, and, of course, memory. Even in garbage-collected languages like Managed C++, resource management is difficult because garbage collection only deals with memory management, not the other resources that cause performance problems.In this article, the author describes the SmartAny template library he created, which uses a policy-based approach to dynamic resource management. Readers will learn how to use the SmartAny classes and policies to ensure the proper cleanup of their resources, be they files, OS handles, or native and unmanaged objects. Eric Niebler

Code Download (1,364 KB)
.Chm Files


Editor's Note: RSS is Here!

RSS is a great, example of how a technology like XML can be used to improve the overall user experience. RSS (Rich Site Summary) is a description of a simple XML schema that can be used to describe the contents of a Web destination.

New Stuff: Resources for Your Developer Toolbox

Olero Software Inc. has announced the release of ORM. NET 1. 2, an object relational mapping tool designed for developers using the Microsoft® . NET Framework. ORM. NET auto-generates a complete data layer object model based on your SQL database schema.Theresa W. Carey

Web Q&A: Font Sizing, Internationalization in JScript, and More

Font Sizing, Internationalization in JScript, and More.Edited by Nancy Michell

Data Points: Techniques in Filling ADO.NET DataTables: Performing Your Own Analysis

How do you know which technique is best for retrieving data and populating a DataSet in ADO.NET?. Since the Microsoft .NET Framework offers so many choices on how to write the code, many developers are now taking a close look at the different options. See what they are.John Papa

The XML Files: Advanced Type Mappings

Can XmlSerializer deal with choice compositors? How about mixed content models? XmlSerializer won't serialize objects that implement IDictionary by default, so how do you get arount it? And more.Aaron Skonnard

Cutting Edge: ASP.NET Controls Templates

It's easy to create a custom control in ASP.NET by deriving a new class from an already existing control. Creating a new ASP.NET control from scratch, on the other hand, is more challenging. When you need a Web server control and none of the existing ones meet your requirements, you can derive from one of the base classes - Control or WebControl. Try it out.Dino Esposito

Advanced Basics: Adding New Features with User Controls

In past versions of Visual Basic, there were rudimentary graphics controls. In Visual Basic .NET you have the GDI+ library, which enables you to draw lines, circles, and most anything else. But how can you use the functionality of GDI+ to create lines and other graphics that respond to user mouse clicks and events? Find out.Ken Spencer

The ASP Column: Tree Controls with XSL

Manipulating the TreeView server-side control is very much like programming any other ASP.NET server-side control. There are a number of properties, methods, and events that are available both programmatically and through the designer. Find out how to take advantage of it.George Shepherd

Bugslayer: SOS: It's Not Just an ABBA Song Anymore

Hidden deep inside the Microsoft .NET Framework 1.1 you'll find Son of Strike (SOS). If your app is a pure managed code, your development and debugging tasks are easily handled by existing Microsoft tools. If you're on border between managed and native code SOS is your man.John Robbins

.NET Column: The CLR's Thread Pool

How does the thread pool work in the CLR?Jeffrey Richter

C++ Q&A: Locking Column Headers, Implementing Singleton Classes

Prevent the sizing of the column headers in an ATL composite control. Also, see how you can share a small amount of simple data among multiple processes running on the same machine without Remoting.Paul DiLascia

Resource File: MSDN Online Developer Centers

When you're looking for information about a specific technology, don't you wish you could rely on one site to point you to the most pertinent content? Now you can. Based on feedback from software developers, MSDN Online has centralized all developer information on specific technologies so you don't have to hunt in several locations.