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 Geoffrey Mellar
Template class for calling trigger functions by a key
by Gabor Fekete
This post demonstrates how to use auto with move-only types. In Declaration and initialization with auto, we showed that using auto for local declarations makes the code safer and more readable. It avoids writing declarations where we easily loose sight of the variable name. Like the fir
by Konstantin Tchoumak
Reading hardware information in Stored Procedure
by Meena Chockalingam
Understanding LIST_ENTRY lists and CONTAINING_RECORD macro which are used in Windows Kernel

Research Library

In this exclusive handbook, we'll walk you through the steps to take in...

Discussions

by wincberg on Threads with windows Forms Controls in Managed C++
by xrf_mail on Article "Native under Managed"
by Geoffrey Mellar on tip/trick "Trigger class for C++"
by William Peets on tip/trick "Trigger class for C++"
by bvbfan on tip/trick "Trigger class for C++"

All Articles

Sort by Score

.NET My Services 

2 Jan 2007
Gary J. Kuehn
Highlighting interoperability support provided by C++ and analysis of performance
4 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 Score

Applications 

24 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.
16 Dec 2011
Mardani Dani
Using C to blend Mathematics and Art that will produce a carving
13 Jul 2003
Ralph Arvesen
A port of the famous C-language based game engine to Visual C++ with a .NET managed heads-up display.
Sort by Score

C++/CLI 

5 Jul 2008
Nish Sivakumar
This article walks through the implementation of a C++/CLI class from a disposable C# base.
26 Jan 2012
paladin_t
A guide about how to mix native and managed code in one solution
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.
7 Dec 2004
James T. Johnson, Nish Sivakumar
Introduces generics and compares it with templates
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
29 Nov 2004
Nish Sivakumar
Tries to explain the syntax, usage and behavior of interior pointers in C++/CLI
11 Aug 2004
Nish Sivakumar
The article exposes the new array syntax available in C++/CLI for the declaration and use of CLI arrays
27 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
27 Jul 2007
Tomas Petricek
CLinq project is a library that makes it possible to use LINQ technologies from the C++/CLI language
24 Apr 2008
Gene OK
This is an update to Don Kackman's UxTheme component originally written for Visual Studio 2003
27 Apr 2004
Nish Sivakumar
A brief look at the new C++/CLI syntax and how it improves over the old MC++ syntax
12 Aug 2004
Nish Sivakumar
Looks at how deterministic destruction is possible with C++/CLI
8 Mar 2008
Nish Sivakumar
The performance of STL/CLR sequence containers are compared with that of corresponding BCL generic collection classes
22 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
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.
21 Aug 2011
Vinod Vijayan
List that combines the advantage of array and linked-list and has better performance
1 Apr 2009
Bala Rajesh
Managed C++ wrapper to a native C++ library
11 May 2005
Nish Sivakumar
Looks at the syntax for the declaration and use of properties in C++/CLI
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.
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.
23 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.
1 Jul 2009
Denis Dwornitzak
The author shows how easy it is to implement the using statement known by C#.
5 Oct 2005
esob
A full blown sample of keeping data secret in memory or on a file.
11 Oct 2006
Gammill
A .NET control meant to accomplish a task similar to MFC’s CRectTacker().
Sort by Score

COM Interop 

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

Controls 

30 Jan 2007
nirvansk815
A custom listbox control to help manipulate data
Sort by Score

General 

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

P/Invoke 

2 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.
3 Jul 2002
Nish Sivakumar
This is further demonstration of MC++ IJW capabilities
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.
4 Apr 2005
Steeve Morin
How to use your managed class libraries in your unmanaged application, using IJW.
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.
13 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.
16 Apr 2002
Albert Pascual
How to open a Serial COM port using Managed C++ and loading unmanaged DLLs
15 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 Score

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.150113.1 | Last Updated 20 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid