Click here to Skip to main content

C++ / CLI

Great Reads

by Nish Sivakumar
Basic introduction to using OLE DB to insert, update and read records from a database
by Chen Hao
How to control the dependancy on oleacc.dll in your Visual C++ .NET applications
by Nish Sivakumar
This article walks through the implementation of a C++/CLI class from a disposable C# base.
by Nish Sivakumar
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

Latest Articles

by djc2032
A three-part series demonstrating how to develop an Oracle Call Interface (OCI) custom data source for Ultimate Grid
by djc2032
A three-part series demonstrating how to develop an Oracle Call Interface (OCI) custom data source for Ultimate Grid
by Dan Quist
A lightweight synchronous event framework for C++

Research Library

This How To Guide for Developers will explain why Enterprise Imaging on...
This whitepaper provides tips for developers on how to enable scanning...

Discussions

by Manikandan10 on A rational attempt to substantiate C++/CLI as...
by dmihailescu on get HDD serial number with no WMI
by dmihailescu on get HDD serial number with no WMI
by Kenneth Haugland on article "Beginner's guide to understand...
by Hard_Rockz on article "Beginner's guide to understand...

All Articles

Sort by Title

.NET My Services 

3 Jan 2007  
Gary J. Kuehn
Highlighting interoperability support provided by C++ and analysis of performance
5 Feb 2002  
Diana Mitran (MSFT)
This white paper guides you through the process of writing a client application that will consume a sample .NET My Services service
Sort by Title

Applications 

9 May 2010  
Software_Developer
How to create an automatic Wallpaper Changer with Windows Forms (C++)
25 Jul 2002  
Nish Sivakumar
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.
14 Jul 2003  
Ralph Arvesen
A port of the famous C-language based game engine to Visual C++ with a .NET managed heads-up display.
16 Dec 2011  
Mardani Dani
Using C to blend Mathematics and Art that will produce a carving
Sort by Title

C++/CLI 

28 Apr 2004  
Nish Sivakumar
A brief look at the new C++/CLI syntax and how it improves over the old MC++ syntax
8 Mar 2008  
Nish Sivakumar
The performance of STL/CLR sequence containers are compared with that of corresponding BCL generic collection classes
24 Apr 2008  
Gene OK
This is an update to Don Kackman's UxTheme component originally written for Visual Studio 2003
28 Jul 2005  
Nish Sivakumar
Why the author thinks that C++/CLI has its own unique role to play as a first-class .NET programming language
29 Nov 2004  
Nish Sivakumar
Tries to explain the syntax, usage and behavior of interior pointers in C++/CLI
12 Aug 2004  
Nish Sivakumar
The article exposes the new array syntax available in C++/CLI for the declaration and use of CLI arrays
5 Jul 2008  
Nish Sivakumar
This article walks through the implementation of a C++/CLI class from a disposable C# base.
20 Jun 2006  
Nish Sivakumar
The article takes a brief look at some not so commonly used classes such as auto_handle, lock, and ptr.
11 May 2005  
Nish Sivakumar
Looks at the syntax for the declaration and use of properties in C++/CLI
20 Jan 2006  
Nish Sivakumar
CAutoNativePtr is a managed template class that acts as a smart pointer, and is handy for using native objects in managed code.
27 Jul 2007  
Tomas Petricek
CLinq project is a library that makes it possible to use LINQ technologies from the C++/CLI language
17 Nov 2004  
Pat26
This is an article discussing how to create a user control and how to add it to other projects using Visual Studio 2005 C++/CLI and .NET Framework 2.0.
13 Aug 2004  
Nish Sivakumar
Looks at how deterministic destruction is possible with C++/CLI
23 Jun 2004  
Nish Sivakumar
Takes a look at new features like explicit overriding, renamed overriding, multiple overriding and sealing a method
30 Nov 2004  
Nish Sivakumar
Article on the usage and dangers of pinning pointers
24 Aug 2004  
Antti Keskinen
A multi-part article, introducing a C++-background person into the world of C++/CLI.
21 Dec 2006  
Antti Keskinen
Second part of the series: leaving Platform SDK behind, and MDI Forms.
5 Oct 2005  
esob
A full blown sample of keeping data secret in memory or on a file.
1 Apr 2009  
Bala Rajesh
Managed C++ wrapper to a native C++ library
26 Jan 2012  
paladin_t
A guide about how to mix native and managed code in one solution
21 Aug 2011  
Vinod Vijayan
List that combines the advantage of array and linked-list and has better performance
1 Jul 2009  
Denis Dwornitzak
The author shows how easy it is to implement the using statement known by C#.
12 Jul 2007  
Nish Sivakumar
This article covers basic marshal_as usage, as well as how to extend marshal_as to support additional type conversions
8 Dec 2004  
James T. Johnson, Nish Sivakumar
Introduces generics and compares it with templates
25 Oct 2007  
nico.pyright
The purpose of this article is to present some utilization of configuration files in a Windows Forms application with C++/CLI.
21 Mar 2006  
nico.pyright
Thsi article explains how to create an RSS reader user control.
11 Oct 2006  
Gammill
A .NET control meant to accomplish a task similar to MFC’s CRectTacker().
Sort by Title

COM Interop 

15 Jul 2003  
leppie
.NET wrapper for libbz2, written in MC++
26 Feb 2005  
Cd-MaN
An article on how to access data from fixed size record data from the .NET environment
15 Nov 2011  
Mitendra Anand
How to implement COM connection point callback for a C++\CLI client.
18 Oct 2001  
Igor Chouvalov
A demoonstration of COM Interop, showing early and late binding to a COM component
11 May 2002  
Nish Sivakumar
An MC++ class that uses IJW to invoke the IShellLink interface
28 Jan 2008  
Yonghwi Kwon
An article on how to retrieve information from a COM object to determine COM DLL filename.
Sort by Title

Controls 

31 Jan 2007  
nirvansk815
A custom listbox control to help manipulate data
Sort by Title

General 

10 Dec 2002  
Stoyan Damov
A Draft Implementation of an Idea for .NET Dynamic Software Load Balancing
14 Aug 2002  
Bill Ferreira
File encryption object using Managed Extensions for C++
4 Oct 2004  
liyang yu
A custom TextBox with input validation written in VC++.NET, also walks you through the steps needed to build your own custom controls
17 Feb 2003  
Marc Clifton
Use this class when high precision is required in basic numerical operations.
25 Jun 2002  
sultan_of_6string
The .NET ArrayList class provides "dynamic arrays" which, to a C++ programmer should seem really innane. Here's a linked list collection class that can be used in any .NET language.
22 May 2014  
djc2032
A three-part series demonstrating how to develop an Oracle Call Interface (OCI) custom data source for Ultimate Grid
22 May 2014  
djc2032
A three-part series demonstrating how to develop an Oracle Call Interface (OCI) custom data source for Ultimate Grid
20 Aug 2002  
Soliant
Use Managed C++ as your code-behind file for ASP.NET web pages
27 Jun 2002  
Nish Sivakumar
Demonstrates the use of the reader/writer classes as well as the file/directory info classes
2 May 2013  
Nicolas Dorier
My journey to migrate pInvoke code to C++/CLI
2 Feb 2006  
Siddhartha Batra
BitmapHandler is a component written in C++ which goes into the basics of reading & creating Bitmaps
27 Aug 2004  
J0ker
Looks like bug in managed c++ with unmanaget template class/struct
13 Sep 2007  
Vivek Ragunathan
Get to know the basics of the ultimate language of the .NET platform
10 Jun 2007  
Ionescu Marius
A simple calculator based on inheritance class
21 Mar 2005  
TarunNeo
This article shows you how to call managed code from unmanaged code and also the other way round.
24 Aug 2002  
Nish Sivakumar
Demonstrates and compares the various casting operators available. Also suggests when to use and what to use!
5 Feb 2007  
Antonio Pedro Dinis
Class Library (DLL) to automate Excel in C++
18 May 2005  
Nish Sivakumar
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.
31 Mar 2011  
Yanick Salzmann
An article on how Try/Catch/Throw are interpreted by the Microsoft Compiler
3 Feb 2003  
kero
Convert a delegate to a function pointer to implement callback function, for mixed Managed C++ and unmanaged C++ coding, and for DLL call.
7 Feb 2005  
mshoukry_alkhwarazmi
a class to convert from VC++.NET String* data type to leagcy LPCTSTR
2 May 2003  
zebbedi
Creating a custom wizard to generate managed C++.NET applications with a default form
16 Oct 2001  
Chris Maunder
An introduction to cross-language inheritence in .NET.
9 Dec 2002  
Nick Parker
Cross Language XML based Web Service Implementation between Managed C++ and C#.
7 Sep 2004  
Peter C. Gallati
An article on implementing a DataGrid control bound to nested ArrayLists in a Windows Form
23 Jan 2005  
Gammill
A four line algorithm in MC++ for converting decimals to fractions.
16 Oct 2001  
Chris Maunder
This sample demonstrates single- and multi-cast delegates using C++, including declaration, creation and usage, and a discussion on type safety.
13 Jun 2002  
Nish Sivakumar
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
18 Jul 2006  
Nimesha Ranasinghe
Alert GMail user when the mails come
10 Jul 2006  
dizzybuzy
Dynamic Stack by using Linked list concept
28 May 2002  
Nish Sivakumar
Shows how you can load an assembly at run time, instantiate a class in that assembly and call methods on the class
26 Jul 2006  
Nimesha Ranasinghe
Detect motion using any webcam
10 Aug 2003  
Leon Finker
Encrypts/self-decrypts a file at a time based on password and chosen algorithm
24 Nov 2005  
Kevin Moore
Modified Microsoft Setup program to install required IE6, MSI 2.0 and .NET.
2 Jun 2004  
Steve Maier
An article on adding memory to events using Managed C++.
2 Aug 2003  
R.selvam
An exception is any error occurring in the program at execution time. Exception handling increases the program reliability.
13 Aug 2002  
Bill Ferreira
Process files based on a file filter and have the filter applied recursively to sub folders
14 Aug 2002  
Bill Ferreira
.NET command line utility, implementing file security through symmetric encryption.
18 Jun 2002  
Chris Maunder
A quick introduction to Garbage collection in .NET using Managed C++
18 Oct 2001  
Igor Chouvalov
This Sample demonstrates basic drawing techniques using GDI+ in a Managed C++ application.
6 May 2008  
dmihailescu
Retrieve the physical Hard drive ID and other info using low level APIs like DeviceIOControl
29 Jan 2007  
dmihailescu
How to get the calling module that invoked your function as an entry point.
28 Jul 2006  
ZhengPing Wang
GUID Generator based on SHA1
27 Jul 2002  
DGoins
This article explains how to create a NT Service also known as a Windows Service using C++ with Managed Extensions.
11 Apr 2002  
Albert Pascual
How to get the clients IP address using TcpClient in Managed C++
5 Jan 2004  
R.selvam
This article explains how to use Process Class in Managed C++ applications
13 Jun 2002  
Nish Sivakumar
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
15 Aug 2007  
Zeeshan Ejaz Bhatti
A utility to control screen saver on your computer using computer vision (human face detection), rather than idle timer.
8 Jul 2002  
Nish Sivakumar
An attempt to get a beginner started on Managed C++
19 Mar 2003  
ManagedCode
Managed C++ often gets a bum rap in the world of .NET. Some of it is deserved, some is not, and some comes from just plain misunderstanding.
4 Nov 2001  
Nish Sivakumar
Shows how to use the Mutex class to limit your app to a single instance using a named mutex
13 Mar 2007  
Giuseppe Pischedda
Load JPEG images from DLL with LoadResource in Managed C++
8 Aug 2003  
Jonathan de Halleux
Add the Lua scripting engine to your .NET applications.
18 Apr 2003  
Nemanja Trifunovic
Some code to help you combine MC++ and STL
14 Sep 2005  
Elias Bachaalany
This article will teach you MC++ in a direct and experiential manner.
3 Mar 2005  
Alberto Ferrazzoli
.NET wrapper for ZLib, written in MC++
9 Aug 2003  
Nish Sivakumar
An introduction to managed exception handling in MC++ programs
8 Nov 2013  
Alexey Shalnov
How to build Not OLE container of MFC applications based on hosting of MFC application from within WinForms and WPF applications
7 Apr 2014  
Alain DOS REIS
A first approach to mixing .NET and native code, using the C++/CLI gateway.
4 May 2011  
cfrost
How to use a modeless WinForm from an unmanaged application including callback functionality
28 Oct 2002  
Stoyan Damov
A (managed C++) library for object pooling in .NET
13 Nov 2001  
Nish Sivakumar
Shows how you can use data bound controls with OLE DB
2 Dec 2001  
Nish Sivakumar
Basic introduction to using OLE DB to insert, update and read records from a database
26 Jun 2007  
Elias Bachaalany
Learn C++/CLI in less than 10 minutes.
2 Sep 2003  
Nemanja Trifunovic
A template wrapper that enables deterministic cleanup in .NET environment.
6 Feb 2005  
Chris Maunder
The explanations, workarounds, scenarios and the rationale behind the decisions to change the Whidbey C++ compiler.
19 Feb 2004  
Nik Vogiatzis
Allows a developer to use the .NET way of reading binary files.
29 Jul 2006  
Boby Thomas P
Brief description on remote debugging using GDB, DDD and GDBserver
28 Jun 2005  
howdyeveryone
another screensaver code, but this one is managed c++ only, no MFC, winipi stuff
26 May 2002  
Nish Sivakumar
A basic introduction to serialization using Managed C++
28 Nov 2002  
Adrian-Bogdan Andreias
A smart logger that makes use of the new predefined VC++.NET macros.
8 Feb 2007  
kbsbng
Sudoku solver using a backtracking algorithm
17 Jan 2006  
R.selvam
This article explains Managed Threads with Windows Forms Controls
13 Sep 2009  
Johann Anhofer
The goal of this article is to describe a more or less generic way to access .NET managed objects from a native C++ application.
7 Jan 2011  
Espen Harlinn
Demonstrates how easy it is to combine ACE and .NET using C++ CLI mixed mode
12 Sep 2001  
Igor Chouvalov
This article demonstrates the basics of accessing a database and retrieving data from that database usingthe ADO.NET data classes.
25 Jun 2002  
Nish Sivakumar
Declaring and using managed .NET arrays with MC++
16 Oct 2001  
Chris Maunder
A quick introduction to using .NET managed reference types in C++
16 Oct 2001  
Chris Maunder
An introduction to using scalar and indexed properties in managed C++
16 Oct 2001  
Igor Chouvalov
This sample demonstrates a basic technique of networking using the TCP/IP protocol in a managed C++ application by implementing a simple POP3 client.
7 Nov 2003  
Jon Shadforth
The easy way to embed a managed resource for use with a component's toolbox bitmap.
2 Jun 2006  
Jun Du
An article on how to use unmanaged C++ classes exported from pre-built libraries (DLLs) with no source code.
16 Oct 2001  
Chris Maunder
A quick introduction to using .NET value types in managed C++
9 Mar 2002  
Rama Krishna Vavilala
A wizard to create a Managed C++ class library which is also a MFC regular DLL
13 Sep 2006  
FERNANDO PAREDES ARNEDO
ASCII based encoder. Clear, encoded and key text allows all printable characters
27 Dec 2006  
Giuseppe Pischedda
Whidbey style with ProfessionalColorTable class
18 Oct 2006  
LeathurBoy
How to use Windows Forms in a Win32 application using Managed C++
26 Mar 2009  
ManelF
This project shows with an example how to combine Managed C++, Managed DirectX and Windows Forms.
14 Feb 2008  
ETA
An article on using the USB Human Interface Device api for reading a wired PS3 controller including motion.
5 Sep 2012  
interopper
How to make a thin-as-possible .NET IEnumerable-wrapper around MFC list classes.
22 Jul 2009  
logicchild
An article about the boundary of unmanged native and managed code
7 Oct 2003  
Dan Farino
This is a SQL Server 2000 Extended Stored Procedure writted in Managed C++. It allows you to use regular expressions in T-SQL.
Sort by Title

P/Invoke 

28 Aug 2003  
Don Kackman
Using the XP Theme API safely on any OS from C#
10 Sep 2013  
Shmuel Zang
This article shows a basic introduction for exposing native C++ content to managed .NET projects, using C++/CLI or P/Invoke.
17 Jun 2005  
Nish Sivakumar
Explains the usage of the Marshal class methods GetFunctionPointerForDelegate and GetDelegateForFunctionPointer, and compares their performance with the P/Invoke mechanism.
17 Apr 2002  
Albert Pascual
How to open a Serial COM port using Managed C++ and loading unmanaged DLLs
14 Jul 2002  
Nish Sivakumar
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.
4 Jul 2002  
Nish Sivakumar
This is further demonstration of MC++ IJW capabilities
3 May 2002  
Nish Sivakumar
A basic introduction to using IJW instead of P/Invoke in Managed C++. This is also the first CP article on IJW.
5 Apr 2005  
Steeve Morin
How to use your managed class libraries in your unmanaged application, using IJW.
16 Oct 2001  
Igor Chouvalov
This article demonstrates interoperability between .NET managed code and old unmanaged code. It uses the P/Invoke mechanism to call unmanaged DLL entry points.
Sort by Title

C++ / MFC - Visual C++ .NET 

15 Feb 2005  
Alberto_Martinez
Very addictive game that demonstrates some GDI, sound, and 100% solvable puzzle creation (from all the testing so far).
6 Sep 2013  
ThatsAlok
Free component for parsing HTML, .NET version of EfTidyCom
10 Jun 2002  
Chen Hao
How to control the dependancy on oleacc.dll in your Visual C++ .NET applications
26 Apr 2007  
Guy Vider
Find out if .NET Framework is installed on the machine, before running your .NET code-based program.
12 Jul 2004  
Nemanja Trifunovic
Another standard feature missing from MSVC++ 7.1

Advertise | Privacy | Mobile
Web01 | 2.8.140705.1 | Last Updated 9 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid