Programmatically Enumerating, Attaching, and Detaching SQL Server Databases

This writing is like an encyclopedia for the SQL statements and stored procedures used to enumerate, attach, and detach databases on a SQL Server instance. It lists the statements and stored procedures that you can use and discusses them in simple examples.

Creating a Simple Sheet Designer in C#

Today, we are going to create a simple application, actually a simple sheet designing tool. This tool gives the user the flexibility to design his sheets, reports, bills, invoices, and receipts (whatever.)

Hard Links vs. Soft Links

This writing talks about hard links and soft links; two of the nice features of NTFS file system.

You can divide file links into two categories: 1) Normal Links (shortcuts) 2) Symbolic Links

Introducing RSS; Developing a Simple RSS Reader

This writing does not include a full discussion or even the full details of RSS or XML. Rather, it includes a nice introduction to RSS and its XML schema. In addition, it incorporates what you get in a sample application that is easy-to-code, understand, and to extend.

Assembly Spy; a Reflection Sample

Assembly Spy is a very nice simple application written in VB.NET that uses reflection to dynamically inspect assemblies and list the containing types and members of the selected type.

Creating a Sound Recorder in C and C#

This writing will focus on how you can record sound from an input device and how you can play sound files using MCI (Media Control Interface) in C and C#.

This writing does not involve a discussion or even an introduction to MCI. Instead, it provides technical discussion of what we will need to use to record and to play sound files. If you need an introduction to MCI refer to the MSDN documentation.

We will begin by a discussion to types and functions required to accomplish our tasks. Then we will look on how you can utilize those types and functions in your C or C# application.

Our demonstration examples in this writing will be in C. In the last section we will have a look at .NET and C#. Besides this, there are sample applications written by C and C# attached with the article.

Marshaling with C# – Chapter 3: Marshaling Compound Types

Marshaling with C# Pocket Reference
Chapter 3: Marshaling Compound Types (structures, unions, etc.)

Marshaling with C# – Chapter 2: Marshaling Simple Types

Marshaling with C# Pocket Reference
Chapter 2: Marshaling Simple Types (primitives, booleans, strings, etc.)

Marshaling with C# – Chapter 1: Introducing Marshaling

Marshaling with C# Pocket Reference
Chapter 1: Introducing Marshaling

Marshaling with C# Pocket Reference

Marshaling with C# Pocket Reference (online version + direct download links)

Learn how to marshal between managed types and unmanaged types.

101 LINQ Samples

Those are some of the most outstanding LINQ samples ever. They are posted in the MSDN Library.

Removing Hidden System Shares

lthough, Windows helps you managing system shares via a great deal of tools and applications, it creates gidden shares for all your disk drives after you install a new fresh copy of Windows that are hidden and not accessible via these tools.

Note: Overcoming WinMain’s ANSI lpCmdLine

I got a question about WinMain and its ANSI lpCmdLine. Are you required to use the ANSI argument? No, you are not!

Simulating CWinApp::OnIdle in C

MFC allows you to override CWinApp::OnIdle function to perform idle-time processing.

This function is called whenever there’re no messages are waiting for processing in the message queue.

In this function, you can perform some secondary processing like updating the status bar, toolbar, etc.

Journey to the Center of the Database

This is one of the powerful (and most funniest) illustrations on the abstraction (i.e. normalization) design of databases. It shows a simple diagram of a database where no abstraction was considered in its design.