The Wayback Machine - https://web.archive.org/web/20061017201631/http://www.codeguru.com:80/csharp/csharp/cs_misc/

CodeGuru
Earthweb Search
Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
Member Sign In
User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.

jobs.internet.com

internet.commerce
Partners & Affiliates
Register Domain Name
Cheap Cameras
Marketing Products
GPS
Education Degrees
Domain registration
Merchant Accounts
Auto Insurance Quote
Dental Insurance
IT Discount Club
Domain Names
Corporate Gifts
Help Desks
Cheap Plane Tickets



RSS Feeds

All

VC++/C++

.NET/C#

VB

See more EarthWeb Network feeds

Home >> .NET / C# >> C# >> Miscellaneous

Embracing the full spectrum of developer needs including content supporting 64 bit, Multi-Core, Tools, and Optimization.

Sun's AMD Opteron Compatibility Guarantee
They promise what?! Yes indeed, Sun offers a legally binding guarantee that future versions of Solaris will support any AMD Opteron-based application that will run on the current version of the OS. Read more.
Future-Proof Your File System in 5 Minutes on AMD
ZFS, the open source, freely available 128-bit file system, now included with the Solaris 10 operating system (as well as other OSes based on the OpenSolaris project), moves data fast, scales without practical limit and makes File System Check (FSCK) obsolete. Here's what you need to know about ZFS on AMD64. Read more.
AMD's Multiple Threads, Multiple Cores, Multiple Gains
Author Peter Aitken walks through the benefits of preemptive multitasking and the opportunities there are for developers. Read more.
Taking Advantage of Concurrent Programming for Windows, Part 3: Locality Effects in .NET Multi-Core Programming
In this third segment, author Larry O'Brien shows one way the data caches on the Opteron and Athlon processor families help prevent "premature optimization." Read more.
For more relevant code samples, tutorials and editorials click here.

Intel Software at IDF. Looking to create the next software breakthrough? Don�t miss the Intel Developer Forum, the premier technology industry event. Sign up now for special software community rates.

Miscellaneous

COM



Administrate Indexing Server from Within Your Application
Rating: none
Klaus Salchner - 07/13/2005
Learn to programmatically administrate Indexing Server; for example, create a new Indexing catalog and then add folders to be indexed by this catalog.

Writing Your Own COM Interop in C#
Rating:
darwen - 01/24/2005
When trying to access functionality implemented inside of COM objects that use IUnknown-based interfaces, the automatic COM interop DLLs generated by TlbImp.exe aren't usually sufficient. Learn how to implement your own COM interfaces and examine a class library to simplify such tasks.

Extensible OLE Property Pages in .NET
Rating:
Robert Simpson - 11/03/2004
Implementing and utilizing extensible property sheets in your .NET classes has never been easier.

Using .NET Class Libraries from VB6 Clients
Rating: none
Andreas Wieberneit - 03/24/2004
How to expose a .NET class library, including methods, properties, and events to a VB6 client.

Consuming .NET Components from COM-Aware Clients'—A Simple Tutorial
Rating: none
Steve Green - 07/31/2003
A tutorial on consuming .NET components from COM-aware clients.


DLLs and Executables



Creating and Using C# DLLs
Rating: none
K. Balaji - 09/16/2002
Learn how Executables and DLLs are loaded into the process address space and how CLR is initialized. Included is a simple project that includes an example and explains how to create and use a DLL in C#.


Design/Techniques



A-Star (A*) Implementation in C# (Path Finding, PathFinder)
Rating:
CastorTiu - 09/06/2006
Learn to use the A-star (A*) implementation in C# (Path Finding, PathFinder).

New in C# 3.0: Create and Initialize Collection Objects in One Step
Rating: none
Vipul Patel - 05/19/2006
C# 3.0's new collection initializer feature provides a new syntax that combines collection object creation and initialization into a single step.

One-Step Object Creation and Initialization in C# 3.0
Rating: none
Vipul Patel - 05/10/2006
C# 3.0 introduced object initializers, which provide a new syntax to initialize the objects you create. This simple syntax combines object creation and initialization into a single step.

Understanding Generic Classes
Rating: none
Tod Golding - 05/08/2006
As you start working with generics, you're likely to want to create a few. See how easy it is to make the transition to writing your own generic types.

The New Anonymous Types Feature in C# 3.0
Rating: none
Vipul Patel - 03/08/2006
C# 3.0 provides a mechanism for declaring anonymous types in your code without explicitly declaring the class structure, and the C# compiler optimizes the creation of anonymous types if one with a similar structure already exists.

Understanding Access Modifiers in VB 2005
Rating: none
Paul Kimmel - 02/06/2006
With access modifiers, you can determine who has access to certain information in your code and who doesn't. Learn some simple rules that will help you quickly determine which modifier to use and when.

Multilanguage in Plain English
Rating:
PadexArt - 12/07/2005
Learn to have multiple, independent resources for your .NET projects. A straightforward approach.

Is the Internet Boom Over?
Rating:
Paul Kimmel - 11/03/2005
Can the average programmer still make money on the Internet after the dotcom bubble burst? Paul Kimmel believes that history tells us yes.

Are You Confused Yet?
Rating:
Bradley Jones - 10/27/2005
Editorial: In the ever rampant word of technology and changes, it is easy to get confused. Consider C# and what is being discussed in the market...

For Developers, Microsoft Has More in Store than Ever Before, Part 2
Rating:
Patrick Gallucci - 10/10/2005
Microsoft announced so many new tools and technologies at its Professional Developers Conference (PDC) 2005 that our "man on the scene" needed a second article to cover it all. Find out what else Redmond has planned for .NET developers.

Discover Dynamic Code Compilation
Rating:
Mark Strawmyer - 10/07/2005
Explore dynamic code compilation with a demonstration that creates new assemblies on the fly and compiles them in memory. This functionality has a number of potential uses and benefits.

Domain Objects Persistence Pattern for .NET
Rating: none
Iqbal Khan - 09/14/2005
Learn about domain object mapping to the relational databases that decouples the domain objects from the persistence logic.

Coming Soon: Autonomous Nano Code Generators
Rating:
Paul Kimmel - 08/29/2005
Imagine a day when tiny bits of code automatically generate code based on any factor a programmer desires. That day may be right around the corner.

Building a Logic Layer for the Description of Wizards
Rating:
Michael-K - 08/25/2005
Learn to construct and use the logical layer for the description of wizards.

[Updated] TIP: A Quick Way to Write Public Properties in C#
Rating:
pete# - 08/15/2005
Learn about a very quick and easy way to create public properties for member variables inside a class using regular expressions.

[Updated] Creating Non-Rectangular Forms
Rating:
Bradley Jones - 07/21/2005
It is amazingly easy to create forms of any shape within Visual C#. You can even do it with VB .NET!

[Updated] Migrating Visual Basic 6.0 Applications to .NET
Rating:
Yogi Abhyankar - 06/22/2005
Microsoft is officially withdrawing support for Visual Basic 6.0 starting January 2006. Strategies and plans need to be outlined for migrating these applications to either VB.NET or C#.

[Updated] Writing Your Own GPS Applications: Part I
Rating:
Jon Person - 12/29/2004
What is it that GPS applications need to be good enough to handle in-car navigation? Also, how does the process of interpreting GPS data actually work? This two-part series will cover both topics and give you the skills you need to write a commercial-grade GPS application that works with a majority of GPS devices in the industry today.

Disposal at the End of Function Scope (not yet reviewed)
Rating:
DaveR1000 - 08/27/2004
This sample will allow for automatically calling dispose on objects that were requested to be disposed at the end of function scope.

Using Application Configuration Files in .NET
Rating:
Mark Strawmyer - 08/17/2004
Learn about using application configuration files in Microsoft .NET and the concept of application configuration files and the native support the Microsoft .NET Framework provides.

Catch Me If You Can
Rating:
Sonu Kapoor - 07/29/2004
This is a small game that I created just for fun.

.NET and XML: Part 2—XSD Schemas
Rating: none
Klaus Salchner - 07/28/2004
Second of a series of articles that evaluates how well .NET supports XML and its surrounding standards. This article provides a good overview of XSD schemas.

Build a Localized Form that Speaks the User's Language
Rating:
Mark Strawmyer - 07/22/2004
Learn how to build a multilingual application using Microsoft .NET. In this installment of the .NET Nuts & Bolts column, Mark Strawmyer outlines the construction and then demonstrates it with examples.

.NET and XML: Part 1—XPath Queries
Rating:
Klaus Salchner - 07/19/2004
This is the first of a series of articles that evaluates how well .NET supports XML and its surrounding standards. This article provides a good overview of the power of XPath queries.

Implement Common Creational Design Patterns
Rating:
Mark Strawmyer - 07/07/2004
Explore some common creational design patterns and learn how to implement them using Microsoft .NET.

Databinding and the Avalon UI
Rating: none
Jason Nadal - 03/30/2004
Graphics objects, those from the MSAvalon.Windows.Shapes namespace, can be manipulated through a number of different types of animations.

Blackjack--A Real-World OOD Example
Rating: none
Dan Fontanesi - 10/21/2002
Learn about object-oriented design (OOD) by reviewing a C# Blackjack game.


E-Mail



Send Mails from within a .NET 2.0 Application
Rating: none
Thiru Thangarathinam - 06/13/2005
Through a set of intuitive classes, the release of .NET 2.0 provides excellent support for sending e-mails. Learn the new ways of sending mail through its System.Net.Mail namespace.

Using C# to Create Distribution Lists
Rating:
muthuis - 05/17/2005
Learn how to access the exchange domain and create a distribution list programmatically by using C# and Active Directory.

Using Regular Expressions to Parse for E-Mail Addresses
Rating: none
Tom Archer - MSFT - 04/12/2005
The final installment of Tom Archer's series on using the .NET regular expression classes from Managed C++ presents several complex patterns that allow you to locate almost any valid e-mail address from a body of text.

BTS: Sending E-Mail in HTML or Text Format from BizTalk 2004
Rating: none
Moustafar - 02/14/2005
Learn to send e-mail directly from BTS 2004.

Hotmail Exposed
Rating:
Wouter van Vugt - 10/14/2003
Accessing Hotmail from C# can be as easy as any other type of mail server.


Graphics and Images



Can You Say "C# Xbox 360 Development?"
Rating:
Bradley Jones - 08/15/2006
XNA Game Developer is coming from Microsoft, and the Express edition will be free!

Uploading Images to a Web Site Is Harder Than You Think
Rating: none
Paul Kimmel - 08/22/2005
Uploading images in Web applications isn't nearly as simple as you may think. Learn the mechanics—and frustrations—of permitting image uploads, saving images, and rendering images.

Create a 3D Cube Structure for GDI+
Rating:
Paul Kimmel - 09/15/2004
Three-dimensional primitive shapes are conspicuously absent from the .NET Framework and GDI+, but that didn't stop Paul Kimmel from implementing a 3D cube primitive. Read all about his results.

Converting Color-Keyed Bitmaps to Custom Regions
Rating: none
Arild Fines - 05/30/2002
Using Unsafe Code in C# to converting color-keyed bitmaps to custom regions.


Icons



Getting Associated Icons Using C#
Rating:
Parvez Ahmad Hakim - 10/22/2003
Learn how to use C# with the SHGetFileInfo function to get the icons that are associated with files.


Mathematics



Floating Point in .NET Part I: Concepts and Formats
Rating:
JeffreySax - 05/05/2005
Learn the basic concepts of floating-point arithmetic: number formats, accuracy and precision, and round-off error.

Function Evaluator
Rating:
Emad Barsoum - 12/04/2002
This program uses the transformation from infix notation to postfix notation to evaluate most mathematic expressions. It supports most operators (+,-,*,/,%,^), functions from 0 to any number of parameters, and also a user-defined function by using delegate. It also supports variables in the expression. It will generate a symbol table that can be updated at run time. Also. this program demonstrates the use of the DataGrid as a normal grid without any database connection.


Miscellaneous



Using Message Queues
Rating:
Mark Strawmyer - 01/12/2004
Mark not only explains queues, but he also demonstrates writing to and multiple ways for reading from a message queue.

TraceView'—A Debug View Utility
Rating: none
Anurag Sharma - 11/18/2003
Capture debug messages from shared memory DBWIN_BUFFER, produced by the OutputDebugString() function.

Generated Access to .NET Resource Strings
Rating: none
Corey Frost - 06/24/2003
Learn about an alternative method of accessing string resources in a C# project by generating access classes for each resource identifier. Include compile-time verification of resource identifiers.

How to Retrieve the Viewable Area of a Window or Control
Rating: none
Conrad Jones - 05/21/2002
Using C# and Win32 functions to get a viewable area of the window or of a control.


Reflection



An Introduction to Reflection in C#
Rating: none
K Balaji - 10/29/2002
Learn how to use reflection classes to read at runtime the attribute and other information defined in your assemblies (.NET Programs).


Sample Programs



Read and Write Open XML Files in MS Office 2007
Rating:
ZeljkoS - 09/21/2006
Learn how to read and write Open XML files (MS Office 2007).

[Updated] Asynchronous Socket Programming in C#: Part I
Rating:
Jayan Nair - 10/06/2005
This is a simple Client-Server application developed to explain the concept of asynchronous sockets in C#. This extends the socket program to accept multiple clients. Because this example uses Asynchronous methods, threads are not necessary to communicate to multiple clients (though internally the asynchronous communication mechanism uses threads at the OS level).

[Updated] Deploy SQL Databases Easily with the Installer Class
Rating:
Stefan Prodan - 05/02/2005
Discover a way to make SQL databases easy to deploy within a MSI file along with your applications.

Generic Code to Execute Stored Procedures
Rating:
Sriram Surapureddy - 01/26/2005
Generic code to execute any stored procedure/batch of stored procedures with different number of parameters and data types

[Updated] MSMQ on Pocket PC 2003
Rating: none
Klaus Salchner - 11/16/2004
Learn how to write MSMQ applications on mobile devices such as Pocket PC 2003 utilizing the .NET Compact Framework 2.0. Provides an overview of the different Windows brands for mobile devices and how to work with the Pocket PC 2003 emulator.

Building Websites with the ASP.NET Community Starter Kit
Rating:
Packt Publishing - 09/17/2004
Learn how to create a new module for the freely available Community Starter Kit.

Installing a BizTalk Server AIC Using the .NET Setup Project
Rating: none
Sumana Mohan - 07/20/2004
Learn about the steps for installing a BizTalk Server AIC using the .NET setup project.

Inter-Process Communication in .NET Using Named Pipes, Part 2
Rating: none
Ivan L - 06/04/2004
Describes how to build a .NET Named Pipes multithreaded server and a client communicating with it.

Inter-Process Communication in .NET Using Named Pipes, Part 1
Rating:
Ivan L - 05/31/2004
This article explores a way of implementing Named Pipes based Inter-Process Communication between .NET applications.

C# FAQ 2.3 - How do I build a C# application using Command Line Compilers?
Rating:
Anand Narayanaswamy - 04/08/2004
Learn how to write a C# program using command line compilers.

A Collection of C# .Net Sample Programs
Rating: none
Bill Nolde - 02/24/2003
Check out this collection of C# programs that illustrate using C# and the .NET interface. They are all short, interactive examples that use .NET forms and various system features.


Security



E-Commerce Tip: Programmatically Validate Credit Card Numbers
Rating: none
Eric Smith - 07/14/2006
Employ this function in your e-commerce application to validate the credit card numbers your users enter.

Who Connects to Your Computer?
Rating: none
akomarov - 05/03/2006
Learn about monitoring the Windows event log for user logon events.

Get to Know the VSTS Native C/C++ Code Analyzer
Rating: none
Nick Wienholt - 03/01/2006
The Static Code Analyzer that ships with Visual Studio Team System, Developer Edition can detect common security issues in native C/C++ code.

Employ Secure CRT Functions in Your C/C++ Applications
Rating:
Nick Wienholt - 01/06/2006
The C run-time libraries (CRT) make writing code with buffer overrun vulnerabilities much more likely, but thankfully Visual C++ 2005 provides extended CRT functions that offer the same functionality with a broader safety net.

Keyboard Spy: Implementation and Counter Measures
Rating:
Dor Alon - 05/12/2005
Learn to develop hook-based key loggers and hook-safe software.

Code Access Security with Microsoft .NET Framework, Part 2
Rating:
Mark Strawmyer - 03/10/2005
The Microsoft .NET Framework provides imperative and declarative ways to check for proper permissions prior to attempting an action. Learn how and when to use them.

Code Access Security with Microsoft .NET Framework
Rating:
Mark Strawmyer - 02/17/2005
The .NET Framework uses an evidence-based security system. Learn how you can use the security policy to allow or deny actions to assemblies.

[Updated] Securing Managed Assemblies with Native EXE Interoperability
Rating:
Palem GopalaKrishna - 11/19/2004
Learn about a simple yet elegant way to secure managed assemblies from easy disassembly by using the powerful interoperability features of .NET.

ASP.NET 2.0 Moves User Authentication One Step Forward
Rating: none
Anand Narayanaswamy - 11/05/2004
ASP.NET 2.0 provides new classes, methods, and controls that make implementing authentication easy. Learn how to apply the authentication functionalities of the Membership class and its methods into ASP.NET applications.

How to Secure Your Assemblies
Rating:
darwen - 09/30/2004
What is really stopping people from using any .NET assemblies you've created?

Introduction to Role-Based Security in .NET
Rating:
Klaus Salchner - 06/18/2004
Learn how role-based security in .NET works. The sample code shows how to implement a database-driven security model for enterprise applications.

Implementing .NET Security in C#
Rating: none
Simon Harris - 10/01/2002
Discover how to deny file i/o access if the user running the application does not have administrator privileges.


User Interface



Working with The Document Object Model — II
Rating: none
Steven M. Schafer - 07/11/2006
Learn even more about working with the DOM in your programming.

Add Simple Animations to Your WPF Application with Timelines
Rating: none
Marius Bancila - 07/06/2006
Learn how to animate your Windows Presentation Foundation applications by using timelines.

WPF 2D Transformations
Rating: none
Marius Bancila - 07/05/2006
Learn how to apply 2D transformations of Windows Presentations Foundation elements.

Creating a Simple Calculator with Microsoft Expression Interactive Designer
Rating: none
Marius Bancila - 06/27/2006
Use the Expression Graphic Designer to create simple graphic elements used in the Expression Interactive Designer to create a richer user interface for a simple calculator application.

Using JavaScript to Work with The Document Object Model — Part I
Rating:
Steven M. Schafer - 06/22/2006
Discover the basics of the W3C DOM and learn how to use JavaScript to transverse the nodes within it. (Javascript)

Web Tip: Add Message and Confirmation Boxes Using JavaScript
Rating: none
Eric Smith - 06/21/2006
By adding a JavaScript confirmation dialog to your Web application, you can help prevent users from doing something they will regret.

Getting Acquainted with the Microsoft Expression Family
Rating:
Marius Bancila - 06/09/2006
See an overview presentation on the three tools from the Microsoft Expression family: Expression Graphic Designer, Expression Interactive Designer, and Expression Web Designer.

Back to the Future of Windows Applications
Rating: none
Marius Bancila - 05/31/2006
Learn about the development of WinFX Windows applications with XAML and the separation between defining the user interface and implementing the business logic.

Product Overload: Microsoft
Rating:
Bradley Jones - 09/16/2005
Are you missing Microsoft's Professional Developers Conference (PDC)? If so, you'll still want to make sure you keep up on all the announcements.

Registry Access in .NET
Rating:
Harihara Madavan - 08/31/2005
Learn about Registry basics and how the Windows Registry can be accessed from .NET.

Avalon and Indigo Get Official Names with Windows Vista Beta Release
Rating:
Bradley Jones - 07/27/2005
With the announcement of the release today of beta 1 for Windows Vista (formally codenamed "Longhorn"), Microsoft also announced the official names for Avalon and Indigo

[Updated] The Mists of Avalon
Rating:
Guido Stercken-Sorrenti - 07/25/2005
Learn about "Avalon," the exciting new presentation subsystem of the upcoming Windows platforms. After an introduction to declarative drawing and XAML, you'll use XAMLPad to get a first taste of Avalon programming.

Form Fade In/Out Effect and Notification Window
Rating:
Abhinaba Basu - 07/08/2005
Learn about a form that can be used to give a fade in/out effect to any form and especifically to notification/alert windows.

Implement UI Role Awareness in Your Applications
Rating:
Jeffrey Juday - 05/03/2005
Learn an elegant and flexible solution for implementing UI changes based on the role changes for your applications.

Manipulating the System Menu Using C#
Rating:
Florian Stinglmayr - 03/04/2005
How to change the System menu by using C# with some help by the native Windows API.

[Updated] Invoking Command Lines Programmatically
Rating:
Thomas Weller - 12/28/2004
The CommandLineProcess class provides a handy way for executing a command line and receiving the resulting text output. No console window is needed.

Editorial: CTIA Mobile Development
Rating: none
Bradley Jones - 11/08/2004
An expansion on the information I presented in the 11/2/2004 CodeGuru eNewsletter editorial on mobile development for cell phones.

Binding Business Objects to WinForms
Rating: none
Eduard Liebenberger - 10/01/2004
Simplify the creation of a user interface for business objects while providing a consistent mechanism for handling IsDirty and IsValid in the UI.

Acronym Anarchy
Rating:
Bradley Jones - 08/25/2004
Acronyms are getting out of control. Do you have what it takes to be an Acronym Guru?

Longhorn Coming Attractions - Part 2
Rating:
Anand Narayanaswamy - 08/20/2004
Explore some interesting features in the Longhorn operating system and learn some of the facts that you have to know when working with the current build.

Dynamically Linked Comboboxes Set
Rating: none
karench - 08/18/2004
Create the dynamically linked comboboxes range, binding with a database.

Mobile/PocketPC Development Jump Start
Rating:
Bradley Jones - 06/22/2004
Learn to start developing for the PocketPC and other mobile devices using Visual Studio .NET 2003.

Persistence of Window State and Appearance for .NET Applications
Rating: none
Alexander Fedorenko - 03/05/2004
The process of building professional desktop applications includes many hidden tasks, such as the persistence of the window state and appearance. This will introduce additional accessibility for such applications. Learn a simple approach to do so.

Maintaining a Responsive UI
Rating: none
Jason Clark - 08/05/2003
To the end-user and to the OS a frozen UI is hard to distinguish from a hung application. Learn how to address this problem in your Windows Forms Applications.

What's Special about Visual C++ .NET?
Rating: none
Kate Gregory - 06/25/2002
What's Special about Visual C++ .NET?


Webcast: Achieve interoperability between incompatible enterprise content management systems.
ISV Innovation Tech Briefings: Free, Demo-driven Events on the 2007 Microsoft Office System
Step-by-step Tutorial: Visualize with Rational Software Modeler--UML 2.0 Modeling. Click here!
Is it time to make your move to the multi-threaded and parallel processing world? Find out!
Download: Rational Application Developer. Quickly design, develop, analyze, test, & deploy apps.


JupiterWeb networks:

internet.comearthweb.comDevx.comGraphics.com

Search JupiterWeb:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterWeb

Jupitermedia Corporate Info