Click here to Skip to main content
11,469,657 members (70,984 online)

C++ / CLI

Great Reads

by Nish Nishant
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 Nishant
This article walks through the implementation of a C++/CLI class from a disposable C# base.
by Nish Nishant
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 Mehul Donga
Handle managed (C#) event in managed (C++/CLI)
by VUnreal
I'm going to show you some not quite evident things if you're about to write a C++/CLI application.
by Vivek Rathod
This article aspires to explain one of the ways a managed type can be invoked from a native type and more importantly from unmanaged C/C++ code.
by Geoffrey Mellar
Template class for calling trigger functions by a key

Research Library

A solution that seamlessly integrates BI saves software companies --...
In this exclusive handbook, we'll walk you through the steps to take in...

Discussions

by djc2032 on article "An Oracle OCI Data Source Class for...
by EPausU on article "An Oracle OCI Data Source Class for...
by Member 11683802 on tip/trick "Detect and Recognize Faces using...
by ddbug on article "C++/CLI for beginners"
by Ivandro Ismael on Article "IDisposable, Finalizer, and...

All Articles

Sort by Updated

.NET My Services 

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

Applications 

19 Sep 2014
Konstantin Tchoumak
Reading hardware information in Stored Procedure
16 Dec 2011
Mardani Dani
Using C to blend Mathematics and Art that will produce a carving
24 Jul 2002
Nish Nishant
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.
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 Updated

C++/CLI 

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 Apr 2009
Bala Rajesh
Managed C++ wrapper to a native C++ library
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().
24 Apr 2008
Gene OK
This is an update to Don Kackman's UxTheme component originally written for Visual Studio 2003
8 Dec 2004
James T. Johnson, Nish Nishant
Introduces generics and compares it with templates
21 Mar 2006
nico.pyright
Thsi article explains how to create an RSS reader user control.
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.
27 Apr 2004
Nish Nishant
A brief look at the new C++/CLI syntax and how it improves over the old MC++ syntax
22 Jun 2004
Nish Nishant
Takes a look at new features like explicit overriding, renamed overriding, multiple overriding and sealing a method
12 Aug 2004
Nish Nishant
Looks at how deterministic destruction is possible with C++/CLI
29 Nov 2004
Nish Nishant
Tries to explain the syntax, usage and behavior of interior pointers in C++/CLI
30 Nov 2004
Nish Nishant
Article on the usage and dangers of pinning pointers
11 May 2005
Nish Nishant
Looks at the syntax for the declaration and use of properties in C++/CLI
28 Jul 2005
Nish Nishant
Why the author thinks that C++/CLI has its own unique role to play as a first-class .NET programming language
20 Jan 2006
Nish Nishant
CAutoNativePtr is a managed template class that acts as a smart pointer, and is handy for using native objects in managed code.
20 Jun 2006
Nish Nishant
The article takes a brief look at some not so commonly used classes such as auto_handle, lock, and ptr.
12 Jul 2007
Nish Nishant
This article covers basic marshal_as usage, as well as how to extend marshal_as to support additional type conversions
8 Mar 2008
Nish Nishant
The performance of STL/CLR sequence containers are compared with that of corresponding BCL generic collection classes
5 Jul 2008
Nish Nishant
This article walks through the implementation of a C++/CLI class from a disposable C# base.
11 Aug 2004
Nish Nishant
The article exposes the new array syntax available in C++/CLI for the declaration and use of CLI arrays
26 Jan 2012
paladin_t
A guide about how to mix native and managed code in one solution
17 Nov 2004
PatGulotta
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.
27 Jul 2007
Tomas Petricek
CLinq project is a library that makes it possible to use LINQ technologies from the C++/CLI language
21 Aug 2011
Vinod Vijayan
List that combines the advantage of array and linked-list and has better performance
22 Jan 2015
Vivek Rathod
This article aspires to explain one of the ways a managed type can be invoked from a native type and more importantly from unmanaged C/C++ code.
Sort by Updated

COM Interop 

26 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
14 Jul 2003
leppie
.NET wrapper for libbz2, written in MC++
15 Nov 2011
Mitendra Anand
How to implement COM connection point callback for a C++\CLI client.
10 May 2002
Nish Nishant
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 Updated

Controls 

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

General 

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

P/Invoke 

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.
2 May 2002
Nish Nishant
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 Nishant
This is further demonstration of MC++ IJW capabilities
13 Jul 2002
Nish Nishant
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.
17 Jun 2005
Nish Nishant
Explains the usage of the Marshal class methods GetFunctionPointerForDelegate and GetDelegateForFunctionPointer, and compares their performance with the P/Invoke mechanism.
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.
5 Apr 2005
Steeve Morin
How to use your managed class libraries in your unmanaged application, using IJW.
Sort by Updated

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).
9 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.
11 Jul 2004
Nemanja Trifunovic
Another standard feature missing from MSVC++ 7.1
6 Sep 2013
ThatsAlok
Free component for parsing HTML, .NET version of EfTidyCom


Advertise | Privacy | Mobile
Web03 | 2.8.150516.1 | Last Updated 19 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid