CSE775 - Distributed Objects
Lecture #18 - C++/CLI, interoperation
between COM, C++, and C#
Revised: 29 Mar 2008
Web Resources:
Code Project
Win32, COM, MFC
DevelopMentor
Windows Developer's Journal
Windows Forms
GotDotNet
C# Corner
IDL and WDSL
COM at MSDN
IDL Language
base MIDL types
OLE data types
IDL attributes
MIDL data types
MIDL Language Reference
conversion functions
Content:
This lecture provides an introduction to managed C++ and the mixing of managed and unmanaged C++. Unmanaged
(standard) C++ has a deep copy object model. C++\CLI (managed C++) has a shallow reference model virtually identical
to C#'s object model.
-
The Syllabus describes topics to be covered,
reading material for you to digest before coming to class, and due dates
for the assigned projects.
-
Best Project #1s - Jacob Baker, Mike Corely, Sunny Gupta
There were many excellent submissions. These are especially worth reviewing.
-
Project #3 Statement
-
Project #4 Statement
-
C++/CLI - the new Managed C++
-
MSDN Tour of C++/CLI
-
Code Examples - C++/CLI
-
Passing Function Arguments Demo
-
Interop with COM
Demonstrates the use of inproc COM component, ATLDemo7, from a C# client, using both early and late binding.
-
Bridge from C++ to C#
Demonstrates use of legacy C++ tokenizer from a C# program.
-
Attributes Presentation
-
Attributed ATL Code Demo
-
Creating Attributes Code Demo
-
Lecture #17 folder contains a page of links to
presentations and code discussed in this class. The Lecture folders will occasionally
hold physical files of interest as well. Usually, however, all the materials
of interest to the class are in the presentations
and code folders. The contents of these folders will grow
as you progress through the course.