Click here to Skip to main content
6,822,613 members and growing! (22,469 online)
Email Password   helpLost your password?

Articles by Nishant Sivakumar (120 articles found)


Articles: 120   Answers: 2  

Average article rating: 4.33

Button Controls

.NET port of Joe's AutoRepeat Button class
Last Updated: 16 Apr 2002   Page Views: 136,585   Rating: 4.11/5    Votes: 37   Popularity: 6.45   Bookmark Count: 45
Licence: The Code Project Open License (CPOL)   
This ports Joe Newcomer's AutoRepeat Button class to a .NET control

Combo & List Boxes

Ordered ListBox
Last Updated: 29 Jul 2002   Page Views: 114,796   Rating: 4.04/5    Votes: 49   Popularity: 6.83   Bookmark Count: 28
A ListBox derived class that supports internal ordering and re-ordering of items
ToolTipListBox - a list box with tool tips
Last Updated: 31 Jul 2002   Page Views: 122,751   Rating: 4.15/5    Votes: 22   Popularity: 5.58   Bookmark Count: 44
A ListBox derived class that shows tool-tips for items that won't fit within the width of the list box
An editable multi-line listbox for .NET
Last Updated: 4 Aug 2002   Page Views: 245,609   Rating: 4.27/5    Votes: 39   Popularity: 6.80   Bookmark Count: 67
An owner drawn listbox that supports multi-line word-wrapped text as well as in-place editing.
FontComboBox - a font listing combo box for .NET
Last Updated: 4 Aug 2002   Page Views: 133,972   Rating: 4.42/5    Votes: 18   Popularity: 5.55   Bookmark Count: 55
A fully owner drawn ComboBox derived class for enumerating and choosing fonts
A data-bound multi-column combobox
Last Updated: 27 Jul 2007   Page Views: 63,465   Rating: 4.88/5    Votes: 49   Popularity: 8.24   Bookmark Count: 116
Licence: The BSD License   
An ownerdrawn multi-column combobox class with support for data-binding

Dialogs and Windows

Tile, center and stretch a bitmap as your MFC dialog background
Last Updated: 6 Jun 2002   Page Views: 251,897   Rating: 4.16/5    Votes: 59   Popularity: 7.37   Bookmark Count: 71
A small CDialog derived class that helps avoid frequent copy/pasting of the same code, when using a bitmap as dialog background
Tutorial - Modeless Dialogs with MFC
Last Updated: 18 Jun 2002   Page Views: 316,484   Rating: 4.38/5    Votes: 120   Popularity: 9.11   Bookmark Count: 106
Some tips/suggestions on using modeless dialogs with MFC
CInputBox 1.0
Last Updated: 30 Nov 2001   Page Views: 81,866   Rating: 4.05/5    Votes: 67   Popularity: 7.39   Bookmark Count: 19
Licence: The Code Project Open License (CPOL)   
A CFrameWnd derived class that provides functionality similar to the VB InputBox function. You don't need a dialog resource to use the class!
Keyboard messages/accelerators handling in MFC dialog based applications
Last Updated: 1 Dec 2001   Page Views: 205,129   Rating: 4.28/5    Votes: 119   Popularity: 8.88   Bookmark Count: 84
Licence: The Code Project Open License (CPOL)   
This article explains how you can override PreTranslateMessage and ProcessMessageFilter in dialog based apps
Delay MessageBox with auto-close option
Last Updated: 13 Aug 2002   Page Views: 158,963   Rating: 4.06/5    Votes: 50   Popularity: 6.90   Bookmark Count: 53
Licence: The Microsoft Public License (Ms-PL)   
This message box delays its dismissal by disabling the OK button for a delay interval. It also has an optional auto-close feature. There are two versions, one uses a WH_CBT hook and some basic window tricks like sub-classing to achieve its goal. The other one is more MFC-ied.
Creating draggable windows - SDI and dialogs
Last Updated: 12 Jul 2002   Page Views: 101,665   Rating: 4.20/5    Votes: 22   Popularity: 5.64   Bookmark Count: 42
Licence: The Microsoft Public License (Ms-PL)   
Shows how you can create windows that can be dragged around, not just through the title bar, but anywhere within the window body
Some handy dialog box tricks, tips and workarounds
Last Updated: 17 Sep 2002   Page Views: 423,321   Rating: 4.77/5    Votes: 119   Popularity: 9.90   Bookmark Count: 312
Licence: The Code Project Open License (CPOL)   
Hidden modal dialogs, stealing focus, always on top dialogs, going full-screen, expanding and contracting dialogs, removing task bar icon, context sensitive help and many other useful tips and tricks.
The singular non-modality of MFC modal dialogs
Last Updated: 6 Apr 2003   Page Views: 129,208   Rating: 4.66/5    Votes: 41   Popularity: 7.51   Bookmark Count: 36
Licence: The Microsoft Public License (Ms-PL)   
Explains the pseudo modality of CDialog based modal dialogs and a problem with the CDialog::EndDialog implementation
MessageBoxManager - A Windows Forms component that provides enhanced MessageBox functionality
Last Updated: 19 Feb 2006   Page Views: 82,915   Rating: 4.45/5    Votes: 46   Popularity: 7.40   Bookmark Count: 131
Licence: The Microsoft Public License (Ms-PL)   
MessageBoxManager is a Windows Forms component that you can drag & drop into a Windows Forms project's main form, and it gives you enhanced message box functionality without forcing you to change your existing calls to any of the MessageBox.Show() overloads
CFormatDriveDialog - A wrapper class for the undocumented SHFormatDrive API function
Last Updated: 27 Aug 2002   Page Views: 98,791   Rating: 4.31/5    Votes: 28   Popularity: 6.24   Bookmark Count: 28
A wrapper class for SHFormatDrive (XP/2K only). Corrects some errors in KB article Q173688

Document / View

CDocument::DoSave revealed
Last Updated: 18 Sep 2002   Page Views: 102,134   Rating: 4.29/5    Votes: 34   Popularity: 6.58   Bookmark Count: 37
Explains how you can suppress the File-Save-As dialog in a Doc/View app, how to save files to multiple formats, and how DoSave is implemented.

Files and Folders

An LCS based diff-ing library in C#
Last Updated: 24 Aug 2009   Page Views: 8,869   Rating: 4.51/5    Votes: 24   Popularity: 6.22   Bookmark Count: 25
Licence: The Code Project Open License (CPOL)   
This is an LCS based diff library that was written for the Code Project Lean and Mean diff engine contest
CFileTar 1.0 - pack and unpack file archives
Last Updated: 18 Nov 2001   Page Views: 100,068   Rating: 3.98/5    Votes: 91   Popularity: 7.80   Bookmark Count: 32
A class for packing and unpacking file archives.

Miscellaneous

Managed C++ and Windows Forms
Last Updated: 25 Oct 2001   Page Views: 112,040   Rating: 4.10/5    Votes: 40   Popularity: 6.57   Bookmark Count: 34
An introduction to Windows Forms using Managed C++
Managed C++ and Windows Forms - Image Viewer
Last Updated: 26 Oct 2001   Page Views: 111,120   Rating: 4.05/5    Votes: 37   Popularity: 6.35   Bookmark Count: 34
Licence: The Code Project Open License (CPOL)   
Demonstrates adding menus, showing open-dialog boxes, showing images, scrolling.
The MFC unclickable button ported to Managed C++
Last Updated: 23 May 2002   Page Views: 88,099   Rating: 4.37/5    Votes: 14   Popularity: 5.01   Bookmark Count: 17
Licence: The Code Project Open License (CPOL)   
This article presents a port of the MFC Trick button to .NET using Managed C++ and Windows Forms
How to have an Auto-Completing ComboBox in .NET
Last Updated: 2 Jun 2002   Page Views: 75,318   Rating: 4.14/5    Votes: 17   Popularity: 5.10   Bookmark Count: 32
Shows how to derive a class from ComboBox and add an Auto-Complete feature to it. The example uses Managed C++.
Multi-line InputBox control - MC++
Last Updated: 7 Jun 2002   Page Views: 90,267   Rating: 4.03/5    Votes: 69   Popularity: 7.41   Bookmark Count: 21
A .NET port of my MFC CFrameWnd derived InputBox class, written using MC++
Outlook style GUI - three-way split form
Last Updated: 3 Jul 2002   Page Views: 116,610   Rating: 4.04/5    Votes: 60   Popularity: 7.19   Bookmark Count: 51
Licence: The Code Project Open License (CPOL)   
Demonstrates the usage of splitters, treeviews, listviews, panels, toolbars
Using WinForms controls in an MFC dialog
Last Updated: 20 Dec 2005   Page Views: 79,949   Rating: 4.40/5    Votes: 27   Popularity: 6.29   Bookmark Count: 48
Licence: The Code Project Open License (CPOL)   
This article is a simple introduction to using the CWinFormsControl MFC class to put a Windows Forms control on an MFC dialog.
Using the Windows Forms 2.0 MenuStrip and ToolStrip controls to give your MFC applications a new look and feel
Last Updated: 21 Feb 2006   Page Views: 67,854   Rating: 4.31/5    Votes: 21   Popularity: 5.70   Bookmark Count: 33
This article demonstrates how to use the Windows Forms 2.0 MenuStrip and ToolStrip controls in an MFC SDI application, using C++/CLI, to get the Office 2003 style menu and toolbar

Shell and IE programming

Clipboard handling with .NET
Last Updated: 27 Apr 2002   Page Views: 244,957   Rating: 4.28/5    Votes: 41   Popularity: 6.90   Bookmark Count: 86
An introduction to using the clipboard

Status Bar

Adding a status bar to an MFC dialog
Last Updated: 16 May 2002   Page Views: 224,365   Rating: 4.55/5    Votes: 94   Popularity: 8.99   Bookmark Count: 90
Licence: The Code Project Open License (CPOL)   
Shows how you can have status bars in your dialog based apps

Applications & Tools

A tool to strip zips of unwanted files before submitting to CodeProject
Last Updated: 19 May 2004   Page Views: 54,821   Rating: 4.36/5    Votes: 28   Popularity: 6.31   Bookmark Count: 29
Licence: The Code Project Open License (CPOL)   
The CPZipStripper tool with source code
MAC Address Changer for Windows XP/2003
Last Updated: 26 May 2005   Page Views: 317,696   Rating: 4.38/5    Votes: 55   Popularity: 7.62   Bookmark Count: 94
Licence: The Common Development and Distribution License (CDDL)   
A freeware program (with source code) that allows you to change the MAC ID of your network adapter
Shell Tray Info - Arrange your system tray icons
Last Updated: 26 Jun 2005   Page Views: 140,537   Rating: 4.30/5    Votes: 32   Popularity: 6.47   Bookmark Count: 64
A tool with full source code that enumerates tray icons and allows you to reposition them as well as send mouse messages.
Window Sizer
Last Updated: 7 Aug 2002   Page Views: 142,842   Rating: 4.70/5    Votes: 51   Popularity: 8.02   Bookmark Count: 64
A hot-key based program that lets you resize your current window to any size. Useful for web designers and GUI developers as it helps avoid frequent screen-resolution changes.
MultiMail 2.0 - Freeware SMTP stress testing tool
Last Updated: 3 Oct 2003   Page Views: 162,840   Rating: 4.08/5    Votes: 46   Popularity: 6.79   Bookmark Count: 38
This free program can be used to stress test SMTP servers. It also aids anti-Spam tool developers as a useful mail-bombardment tool.

ASP.NET

A quick guide to using nested repeaters in ASP.NET
Last Updated: 19 Feb 2004   Page Views: 184,611   Rating: 4.12/5    Votes: 30   Popularity: 6.09   Bookmark Count: 49
Using nested repeaters in ASP.NET with an XML data store

GDI

Using color gradients as backgrounds in your dialogs and views
Last Updated: 9 Jun 2002   Page Views: 158,193   Rating: 4.02/5    Votes: 68   Popularity: 7.37   Bookmark Count: 62
Beginner article that shows how you can create horizontal, vertical and diagonal backgrounds. Also tells you what to watch out for, to avoid flickering when doing complicated drawing.

.NET Framework

Drag and Drop between list boxes - Beginner's Tutorial
Last Updated: 13 May 2002   Page Views: 201,146   Rating: 4.05/5    Votes: 96   Popularity: 8.04   Bookmark Count: 69
An introduction to drag and drop in .NET
Registry handling with .NET
Last Updated: 21 May 2002   Page Views: 127,139   Rating: 4.03/5    Votes: 62   Popularity: 7.23   Bookmark Count: 47
Shows with some code snippets how registry handling is a piece of cake with .NET
A statistical analysis of the performance variations of assorted managed and unmanaged languages
Last Updated: 8 Aug 2002   Page Views: 196,251   Rating: 4.02/5    Votes: 79   Popularity: 7.64   Bookmark Count: 37
Licence: The Code Project Open License (CPOL)   
This article compares and contrasts the relative performances of various languages like native C++, Visual Basic 6, C#, VB.NET, Managed C++, MC++ and native code mix, ngen'd assemblies etc. using a prime number generation function as a generic benchmark
The coding gentleman's guide to detecting the .NET Framework
Last Updated: 21 Jul 2005   Page Views: 85,941   Rating: 4.23/5    Votes: 34   Popularity: 6.47   Bookmark Count: 61
A C++ class that will detect and enumerate the active CLR versions on a machine
A modal dialog that fades the background to gray-scale imitating the XP shutdown screen
Last Updated: 23 Feb 2006   Page Views: 76,992   Rating: 4.44/5    Votes: 26   Popularity: 6.28   Bookmark Count: 63
Licence: The Common Development and Distribution License (CDDL)   
DimmerDialog is a .NET class that shows a modal dialog which grays out the rest of the background, just like the Windows XP Shutdown dialog. This can be used when your application needs to show a very important message box or form that requires immediate user attention.

Win32/64 SDK & OS

Getting and setting desktop folder names
Last Updated: 24 Jan 2003   Page Views: 55,723   Rating: 4.09/5    Votes: 35   Popularity: 6.32   Bookmark Count: 31
Gives you copy/paste-able functions to retrieve the localized folder names, and to set/get user-defined folder names for dekstop folders
Changing default icons for folders and drives
Last Updated: 26 Jan 2003   Page Views: 103,983   Rating: 4.36/5    Votes: 28   Popularity: 6.31   Bookmark Count: 42
Shows how to globally change the icons for folders and drives. Also shows some nifty tricks you might find handy in your applications.
Manipulating Windows using messages and simple CBT hooking
Last Updated: 7 Aug 2003   Page Views: 95,557   Rating: 4.22/5    Votes: 31   Popularity: 6.29   Bookmark Count: 58
Licence: The Microsoft Public License (Ms-PL)   
Demonstrates techniques using windows messages and hooks, which allow us to automate a windows properties dialog or even custom applications
CProcessData : A template class to ease up SendMessage calls across processes
Last Updated: 10 Jun 2005   Page Views: 55,091   Rating: 4.84/5    Votes: 38   Popularity: 7.65   Bookmark Count: 62
CProcessData is a template class that makes it easy to use data allocated in a different process, and is useful when making inter-process SendMessage/PostMessage calls.

Windows Communication Foundation

A first look at the Windows Web Services API
Last Updated: 27 Jul 2009   Page Views: 13,877   Rating: 4.78/5    Votes: 26   Popularity: 6.76   Bookmark Count: 36
Licence: The Code Project Open License (CPOL)   
The article shows how to interop between a WCF service and a WWS client, and also how to rewrite the WCF service in WWS retaining compatibility with existing WCF clients.

Windows Presentation Foundation

WPF Tutorial - Part 1 : Transformations
Last Updated: 21 Jul 2006   Page Views: 91,952   Rating: 4.23/5    Votes: 37   Popularity: 6.63   Bookmark Count: 69
A brief introduction to using transformations with the WPF
WPF Tutorial - Part 2 : Writing a custom animation class
Last Updated: 12 Apr 2007   Page Views: 52,453   Rating: 4.75/5    Votes: 38   Popularity: 7.50   Bookmark Count: 54
Licence: The Code Project Open License (CPOL)   
This article covers how animations can be applied on properties that do not have an associated animation class

C / C++ Language

MFC under the hood
Last Updated: 2 Jul 2002   Page Views: 187,794   Rating: 4.04/5    Votes: 94   Popularity: 7.97   Bookmark Count: 99
Explains the basic MFC program flow including where WinMain and the message loop are hidden

C#

Introduction to inheritance, polymorphism in C#
Last Updated: 9 Oct 2001   Page Views: 331,302   Rating: 4.10/5    Votes: 110   Popularity: 8.36   Bookmark Count: 89
An elementary introduction to inheritance, polymorphism in C# using simple code snippets
Enums and Structs in C#
Last Updated: 13 Oct 2001   Page Views: 203,421   Rating: 4.09/5    Votes: 79   Popularity: 7.75   Bookmark Count: 74
Licence: The Common Public License Version 1.0 (CPL)   
Two oft-overlooked value types that C# offers and where they can be used
Events and event handling in C#
Last Updated: 16 Oct 2001   Page Views: 338,772   Rating: 4.14/5    Votes: 83   Popularity: 7.94   Bookmark Count: 138
An introduction to using events and event handlers in C#
Getting unsafe with pointers in C#
Last Updated: 12 May 2002   Page Views: 99,239   Rating: 4.04/5    Votes: 63   Popularity: 7.27   Bookmark Count: 32
Licence: The Code Project Open License (CPOL)   
Introduction to unsafe code
Simulating polymorphic operator overloads with C#
Last Updated: 19 Apr 2005   Page Views: 59,728   Rating: 4.46/5    Votes: 19   Popularity: 5.71   Bookmark Count: 20
Article shows how to overcome the C# insistence on operator overloads being static and describes a method for simulating polymorphic behavior for operator overloads.
A generic Trictionary class
Last Updated: 11 Mar 2009   Page Views: 7,501   Rating: 4.31/5    Votes: 16   Popularity: 5.19   Bookmark Count: 15
Licence: The Code Project Open License (CPOL)   
This article describes a generic Trictionary class derived from Dictionary that allows two values of different types per key
Adding tray icons and context menus
Last Updated: 10 Apr 2002   Page Views: 295,278   Rating: 4.08/5    Votes: 68   Popularity: 7.48   Bookmark Count: 149
Beginner's Tutorial on adding tray icons and setting context menus
Using a TypeDescriptionProvider to support dynamic run-time properties
Last Updated: 16 Jun 2008   Page Views: 12,076   Rating: 4.56/5    Votes: 26   Popularity: 6.45   Bookmark Count: 35
Licence: The Code Project Open License (CPOL)   
This articles explains how to implement a TypeDescriptionProvider for a class to support multiple object types using a single class type
Pre-beginner's guide to using a timer
Last Updated: 15 Mar 2002   Page Views: 117,881   Rating: 4.07/5    Votes: 62   Popularity: 7.29   Bookmark Count: 40
Shows how you can use a timer proc in your windows forms apps

C++ / CLI

N-Track : Work-Time tracking system
Last Updated: 24 Jul 2002   Page Views: 195,798   Rating: 4.26/5    Votes: 36   Popularity: 6.63   Bookmark Count: 51
A work time tracking system that includes a Managed C++ remoting server and MFC clients that use the managed extensions. The application demonstrates how to mix managed and unmanaged code.
A first look at C++/CLI
Last Updated: 27 Apr 2004   Page Views: 286,407   Rating: 4.67/5    Votes: 101   Popularity: 9.36   Bookmark Count: 106
A brief look at the new C++/CLI syntax and how it improves over the old MC++ syntax
Function overriding in C++/CLI
Last Updated: 22 Jun 2004   Page Views: 149,358   Rating: 4.63/5    Votes: 32   Popularity: 6.96   Bookmark Count: 29
Takes a look at new features like explicit overriding, renamed overriding, multiple overriding and sealing a method
Arrays in C++/CLI
Last Updated: 11 Aug 2004   Page Views: 193,180   Rating: 4.43/5    Votes: 38   Popularity: 7.00   Bookmark Count: 38
Licence: The Microsoft Public License (Ms-PL)   
The article exposes the new array syntax available in C++/CLI for the declaration and use of CLI arrays
Deterministic Destruction in C++/CLI
Last Updated: 12 Aug 2004   Page Views: 97,321   Rating: 4.38/5    Votes: 27   Popularity: 6.26   Bookmark Count: 29
Looks at how deterministic destruction is possible with C++/CLI
An overview of interior pointers in C++/CLI
Last Updated: 29 Nov 2004   Page Views: 56,329   Rating: 4.65/5    Votes: 28   Popularity: 6.73   Bookmark Count: 28
Tries to explain the syntax, usage and behavior of interior pointers in C++/CLI
Guide to using Pinning Pointers
Last Updated: 30 Nov 2004   Page Views: 53,140   Rating: 4.53/5    Votes: 27   Popularity: 6.48   Bookmark Count: 28
Licence: The Code Project Open License (CPOL)   
Article on the usage and dangers of pinning pointers
Using generics in C++/CLI
Last Updated: 7 Dec 2004   Page Views: 69,208   Rating: 4.29/5    Votes: 20   Popularity: 5.59   Bookmark Count: 21
Introduces generics and compares it with templates
C++/CLI Properties - Syntactic sugar for accessor methods
Last Updated: 11 May 2005   Page Views: 72,178   Rating: 4.55/5    Votes: 19   Popularity: 5.82   Bookmark Count: 15
Looks at the syntax for the declaration and use of properties in C++/CLI
A rational attempt to substantiate C++/CLI as a first class CLI language
Last Updated: 27 Jul 2005   Page Views: 114,978   Rating: 4.36/5    Votes: 68   Popularity: 7.99   Bookmark Count: 60
Licence: The Microsoft Public License (Ms-PL)   
Why the author thinks that C++/CLI has its own unique role to play as a first-class .NET programming language
CAutoNativePtr - A managed smart pointer for using native objects in managed code
Last Updated: 20 Jan 2006   Page Views: 23,942   Rating: 4.78/5    Votes: 30   Popularity: 7.07   Bookmark Count: 31
Licence: The Microsoft Public License (Ms-PL)   
CAutoNativePtr is a managed template class that acts as a smart pointer, and is handy for using native objects in managed code.
C++/CLI Library classes for interop scenarios
Last Updated: 20 Jun 2006   Page Views: 42,631   Rating: 4.58/5    Votes: 35   Popularity: 7.07   Bookmark Count: 37
Licence: The Microsoft Public License (Ms-PL)   
The article takes a brief look at some not so commonly used classes such as auto_handle, lock, and ptr.
Using and extending the Orcas marshal_as library
Last Updated: 12 Jul 2007   Page Views: 16,647   Rating: 4.82/5    Votes: 23   Popularity: 6.56   Bookmark Count: 19
This article covers basic marshal_as usage, as well as how to extend marshal_as to support additional type conversions
A look at STL/CLR performance for linear containers
Last Updated: 8 Mar 2008   Page Views: 15,699   Rating: 4.45/5    Votes: 23   Popularity: 6.05   Bookmark Count: 12
Licence: The Common Development and Distribution License (CDDL)   
The performance of STL/CLR sequence containers are compared with that of corresponding BCL generic collection classes
C++/CLI HowTo : Deriving from a C# disposable class
Last Updated: 5 Jul 2008   Page Views: 11,395   Rating: 4.76/5    Votes: 23   Popularity: 6.49   Bookmark Count: 20
Licence: The Code Project Open License (CPOL)   
This article walks through the implementation of a C++/CLI class from a disposable C# base.
Creating and Resolving shell links
Last Updated: 10 May 2002   Page Views: 160,753   Rating: 4.26/5    Votes: 30   Popularity: 6.29   Bookmark Count: 21
An MC++ class that uses IJW to invoke the IShellLink interface
Limiting your .NET apps to a single instance
Last Updated: 3 Nov 2001   Page Views: 159,121   Rating: 4.10/5    Votes: 53   Popularity: 7.08   Bookmark Count: 17
Shows how to use the Mutex class to limit your app to a single instance using a named mutex
OLE DB - Bound controls
Last Updated: 12 Nov 2001   Page Views: 167,911   Rating: 4.02/5    Votes: 158   Popularity: 8.85   Bookmark Count: 23
Licence: The Code Project Open License (CPOL)   
Shows how you can use data bound controls with OLE DB
OLE DB - First steps
Last Updated: 1 Dec 2001   Page Views: 140,186   Rating: 4.04/5    Votes: 67   Popularity: 7.38   Bookmark Count: 16
Licence: The Code Project Open License (CPOL)   
Basic introduction to using OLE DB to insert, update and read records from a database
Serialization Primer - MC++
Last Updated: 25 May 2002   Page Views: 131,632   Rating: 4.66/5    Votes: 22   Popularity: 6.25   Bookmark Count: 28
A basic introduction to serialization using Managed C++
Dynamically loading a DLL - MC++
Last Updated: 27 May 2002   Page Views: 157,372   Rating: 4.05/5    Votes: 47   Popularity: 6.78   Bookmark Count: 23
Shows how you can load an assembly at run time, instantiate a class in that assembly and call methods on the class
Delegates Tutorial - MC++ and C# - The dual perspective
Last Updated: 12 Jun 2002   Page Views: 167,694   Rating: 4.29/5    Votes: 52   Popularity: 7.36   Bookmark Count: 72
Introduces and walks you through the use of delegates in .NET. Compares and contrasts the different approaches that MC++ and C# adopt in the use of delegates. With examples in both languages
Implementing custom collection classes with MC++
Last Updated: 12 Jun 2002   Page Views: 205,351   Rating: 4.35/5    Votes: 22   Popularity: 5.84   Bookmark Count: 26
Tutorial on creating your own collection classes that are enumerable and sortable. Explains in detail the usage of the IEnumerable, IEnumerator, IComparable and IComparer interfaces
Using managed arrays
Last Updated: 24 Jun 2002   Page Views: 158,172   Rating: 4.05/5    Votes: 48   Popularity: 6.81   Bookmark Count: 29
Declaring and using managed .NET arrays with MC++
Basic stuff on Files, Directories and Streams
Last Updated: 26 Jun 2002   Page Views: 128,186   Rating: 4.05/5    Votes: 51   Popularity: 6.91   Bookmark Count: 25
Demonstrates the use of the reader/writer classes as well as the file/directory info classes
Introduction to Managed C++
Last Updated: 7 Jul 2002   Page Views: 193,782   Rating: 4.07/5    Votes: 51   Popularity: 6.94   Bookmark Count: 46
An attempt to get a beginner started on Managed C++
Casting Basics - Use C++ casts in your VC++.NET programs
Last Updated: 23 Aug 2002   Page Views: 219,117   Rating: 4.61/5    Votes: 38   Popularity: 7.29   Bookmark Count: 51
Demonstrates and compares the various casting operators available. Also suggests when to use and what to use!
Managed Exception Handling using VC++.NET
Last Updated: 8 Aug 2003   Page Views: 72,698   Rating: 4.37/5    Votes: 25   Popularity: 6.11   Bookmark Count: 14
An introduction to managed exception handling in MC++ programs
CNullable : A convenient Nullable equivalent class for C++/CLI
Last Updated: 18 May 2005   Page Views: 24,491   Rating: 4.11/5    Votes: 16   Popularity: 4.95   Bookmark Count: 10
CNullable can be used to represent a value type (or simple native type) such that the type can be nulled. You can also compare it to nullptr using the == and != operators both of which have been overloaded.
Using IJW in Managed C++
Last Updated: 2 May 2002   Page Views: 173,185   Rating: 4.06/5    Votes: 37   Popularity: 6.37   Bookmark Count: 26
A basic introduction to using IJW instead of P/Invoke in Managed C++. This is also the first CP article on IJW.
Screen and Form capture with Managed C++
Last Updated: 3 Jul 2002   Page Views: 193,241   Rating: 4.06/5    Votes: 51   Popularity: 6.93   Bookmark Count: 30
This is further demonstration of MC++ IJW capabilities
Implementing Callback functions using IJW (avoiding DllImport)
Last Updated: 13 Jul 2002   Page Views: 139,438   Rating: 4.11/5    Votes: 27   Popularity: 5.88   Bookmark Count: 29
Shows how you can call native API functions that require callbacks using IJW, and without the use of DllImport attribute. The technique allows you to pass a delegate as the callback function just as in the MS recommended manner except, I show you how to do this without the ugly DllImport attribute.
Function pointers and Delegates - Closing the gap!
Last Updated: 17 Jun 2005   Page Views: 63,285   Rating: 4.19/5    Votes: 22   Popularity: 5.63   Bookmark Count: 31
Licence: The Microsoft Public License (Ms-PL)   
Explains the usage of the Marshal class methods GetFunctionPointerForDelegate and GetDelegateForFunctionPointer, and compares their performance with the P/Invoke mechanism.

Bugs & Workarounds

The virtual bool bug
Last Updated: 2 Sep 2003   Page Views: 92,243   Rating: 4.52/5    Votes: 34   Popularity: 6.92   Bookmark Count: 26
Describes the virtual bool bug that exists in mixed mode Managed C++ programs that access unmanaged classes
Bug when using the java.util.zip classes to write zip files
Last Updated: 8 May 2004   Page Views: 77,620   Rating: 4.19/5    Votes: 16   Popularity: 5.04   Bookmark Count: 22
Licence: The Code Project Open License (CPOL)   
Describes an issue when writing a binary file into a zip file using the java.util.zip classes

Internet / Network

Beginning Winsock Programming - Simple TCP server
Last Updated: 25 Feb 2002   Page Views: 419,558   Rating: 4.34/5    Votes: 162   Popularity: 9.59   Bookmark Count: 183
An introduction to WinSock programming. A simple TCP server is explained.
Beginning Winsock Programming - Simple TCP client
Last Updated: 28 Feb 2002   Page Views: 360,835   Rating: 4.51/5    Votes: 100   Popularity: 9.02   Bookmark Count: 156
A simple TCP client is explained.
Beginning Winsock Programming - Multithreaded TCP server with client
Last Updated: 5 Mar 2002   Page Views: 300,804   Rating: 4.38/5    Votes: 93   Popularity: 8.61   Bookmark Count: 137
Explains a multithreaded TCP file server, a custom TCP chat protocol and a custom TCP client
CSmtpProxyMT 1.0
Last Updated: 15 Nov 2001   Page Views: 78,957   Rating: 4.05/5    Votes: 68   Popularity: 7.42   Bookmark Count: 32
An SMTP proxy class with ability to insert signatures to outgoing mails. Does not require MFC.
CPopProxyMT - A multi-threaded POP3 proxy skeleton
Last Updated: 9 Oct 2002   Page Views: 101,061   Rating: 4.59/5    Votes: 20   Popularity: 5.98   Bookmark Count: 29
CPopProxyMT is a skeletal class that wraps a multi-threaded POP3 proxy. You can further modify this class to suite your needs.
How to do Synchronous and Asynchronous web downloads
Last Updated: 28 Jun 2002   Page Views: 97,704   Rating: 4.05/5    Votes: 49   Popularity: 6.85   Bookmark Count: 34
Explains the usage of WebRequest, WebResponse and related classes.
MC++ TCP server talking to MFC & MC++ TCP clients
Last Updated: 1 Jul 2002   Page Views: 119,204   Rating: 4.03/5    Votes: 53   Popularity: 6.95   Bookmark Count: 24
Licence: The Code Project Open License (CPOL)   
Basic demonstration of the TcpListener/TcpClient classes.
Absolute beginner's introduction to remoting
Last Updated: 4 Apr 2002   Page Views: 193,564   Rating: 4.45/5    Votes: 102   Popularity: 8.94   Bookmark Count: 140
Introduces .NET remoting and the use of asynchronous callbacks using simple code snippets

Programming Tips

To new is C++; To malloc is C; To mix them is sin
Last Updated: 29 Mar 2004   Page Views: 212,939   Rating: 4.14/5    Votes: 28   Popularity: 5.98   Bookmark Count: 33
Article explains the differences between malloc/free and new/delete in a C++ context
Send mail without specifying an SMTP server
Last Updated: 12 Apr 2005   Page Views: 187,401   Rating: 4.28/5    Votes: 38   Popularity: 6.76   Bookmark Count: 85
Licence: The Microsoft Public License (Ms-PL)   
A class derived from CSMTPConnection that queries the MX record for a target domain and uses that to send mail
How to accurately detect if an application is theme-enabled?
Last Updated: 1 Jun 2005   Page Views: 30,319   Rating: 4.51/5    Votes: 19   Popularity: 5.77   Bookmark Count: 27
Describes a function that overcomes the inadequacies of IsAppThemed and IsThemeActive.
How to drag a virtual file from your app into Windows Explorer
Last Updated: 13 Sep 2006   Page Views: 60,748   Rating: 4.78/5    Votes: 35   Popularity: 7.38   Bookmark Count: 75
Shows how to use CFSTR_FILEDESCRIPTOR and CFSTR_FILECONTENTS to perform drag/drop with virtual files

String handling

The Complete Guide to C++ Strings, Part II - String Wrapper Classes
Last Updated: 12 Oct 2002   Page Views: 573,910   Rating: 4.86/5    Votes: 203   Popularity: 11.22   Bookmark Count: 420
A guide to the string wrapper classes provided by Visual C++ and class libraries
StringConvertor : A convertor class for managed-unmanaged string conversions that handles memory de-allocations
Last Updated: 15 May 2005   Page Views: 76,785   Rating: 4.61/5    Votes: 33   Popularity: 6.99   Bookmark Count: 41
Licence: The Code Project Open License (CPOL)   
A convertor class for managed-unmanaged string conversions that handles memory de-allocations. Caller need not worry about freeing unmanaged memory allocations.

Threads, Processes & IPC

How to pass data to worker threads
Last Updated: 30 Oct 2001   Page Views: 117,464   Rating: 4.10/5    Votes: 32   Popularity: 6.17   Bookmark Count: 24
Licence: The Code Project Open License (CPOL)   
Shows how you can pass data to your worker threads
Thread Sychronization using monitors
Last Updated: 31 Oct 2001   Page Views: 50,469   Rating: 4.15/5    Votes: 33   Popularity: 6.30   Bookmark Count: 18
Licence: The Code Project Open License (CPOL)   
Introduction to using the Monitor class for accessing shared resources from multiple threads
Using events for thread synchronization
Last Updated: 27 Mar 2002   Page Views: 213,171   Rating: 4.10/5    Votes: 34   Popularity: 6.28   Bookmark Count: 46
Licence: The BSD License   
An introduction to using signaled events for thread synchronization in .NET

Installation

Deploying MFC applications via ClickOnce
Last Updated: 14 Jan 2008   Page Views: 21,345   Rating: 4.87/5    Votes: 26   Popularity: 6.90   Bookmark Count: 37
Licence: The Code Project Open License (CPOL)   
A step by step tutorial on how to deploy an MFC application via ClickOnce

Book Chapters

C++/CLI in Action - Declaring CLR types
Last Updated: 24 Feb 2007   Page Views: 23,992   Rating: 4.73/5    Votes: 32   Popularity: 7.12   Bookmark Count: 24
Excerpts from Chapter 1. Topics are (1) Declaring CLR types and (2) Handles: The CLI equivalent to pointers
C++/CLI in Action - Instantiating CLI classes
Last Updated: 26 Feb 2007   Page Views: 22,097   Rating: 4.83/5    Votes: 26   Popularity: 6.83   Bookmark Count: 25
Licence: The Code Project Open License (CPOL)   
This is an excerpt from Chapter 1 that covers how CLI classes are instantiated, and discusses constructors and assignment operators
C++/CLI in Action - Using interior and pinning pointers
Last Updated: 28 Feb 2007   Page Views: 18,733   Rating: 4.68/5    Votes: 31   Popularity: 6.98   Bookmark Count: 34
Excerpt from Chapter 4 on interior and pinning pointers

Hardware & System

CFloppyDisk 2.0
Last Updated: 14 Feb 2002   Page Views: 136,706   Rating: 4.51/5    Votes: 64   Popularity: 8.14   Bookmark Count: 31
A class for reading and writing floppy disk sectors directly [Win 95/98/ME/NT/2K/XP]
CExpire - A C++ class that implements time and run based restrictions
Last Updated: 28 Feb 2002   Page Views: 124,702   Rating: 4.34/5    Votes: 54   Popularity: 7.51   Bookmark Count: 91
Licence: The Microsoft Public License (Ms-PL)   
Shareware authors can use this class to limit the number of runs or the number of days that a program will function
Beginner's Tutorial - Using global hotkeys
Last Updated: 28 Apr 2002   Page Views: 150,706   Rating: 4.34/5    Votes: 46   Popularity: 7.22   Bookmark Count: 45
Licence: The Microsoft Public License (Ms-PL)   
Explains how to register, use and unregister hotkeys
A newbie's elementary guide to spawning processes
Last Updated: 2 Aug 2002   Page Views: 247,755   Rating: 4.35/5    Votes: 92   Popularity: 8.55   Bookmark Count: 104
Licence: The Microsoft Public License (Ms-PL)   
Gives an elementary introduction to the use of ShellExecute/ShellExecuteEx, CreateProcess, WaitForSingleObject. How to bring up the Find window, the Properties window.
Beginner's introductory guide to writing, installing, starting, stopping NT services
Last Updated: 29 Dec 2001   Page Views: 248,107   Rating: 4.66/5    Votes: 130   Popularity: 9.85   Bookmark Count: 198
Licence: The Code Project Open License (CPOL)   
Includes a generic skeleton for a simple NT service. Explains how to install, start, and stop the service programmatically.
CServiceHelper
Last Updated: 20 May 2002   Page Views: 106,429   Rating: 4.27/5    Votes: 44   Popularity: 7.01   Bookmark Count: 38
A simple class to install, uninstall, start, stop, pause, continue Win32 services

Nishant Sivakumar


Member
Nish is a real nice guy living in Atlanta, who has been coding since 1990, when he was 13 years old. Originally from sunny Trivandrum in India, he recently moved to Atlanta from Toronto and is a little sad that he won't be able to play in snow anymore.

Nish has been a Microsoft Visual C++ MVP since October, 2002 - awfully nice of Microsoft, he thinks. He maintains an MVP tips and tricks web site - www.voidnish.com where you can find a consolidated list of his articles, writings and ideas on VC++, MFC, .NET and C++/CLI. Oh, and you might want to check out his blog on C++/CLI, MFC, .NET and a lot of other stuff - blog.voidnish.com

Nish loves reading Science Fiction, P G Wodehouse and Agatha Christie, and also fancies himself to be a decent writer of sorts. He has authored a romantic comedy Summer Love and Some more Cricket as well as a programming book – Extending MFC applications with the .NET Framework.

Nish's latest book C++/CLI in Action published by Manning Publications is now available for purchase. You can read more about the book on his blog.

Despite his wife's attempts to get him into cooking, his best effort so far has been a badly done omelette. Some day, he hopes to be a good cook, and to cook a tasty dinner for his wife.
Location: United States United States


Last Updated 10 Feb 2010
Web17 | 2.2.0230 (18:30 2 Apr '10 ) | Advertise | Privacy
Copyright © CodeProject, 1999-2010
All Rights Reserved. Terms of Use