Instructor-led training
.NET Framework Using C++/CLI Training in Kirkwood, Missouri
This three-day course is designed to provide a sound introduction to the .NET Framework for programmers who already know the C++/CLI language and the fundamentals of Windows Forms.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Kirkwood, Missouri or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
.NET Fundamentals
What is Microsoft .NET?
Open Standards and Interoperability
Windows Development Problems
Common Language Runtime
Attribute-Based Programming
Metadata
Types
NET Framework Class Library
Interface-Based Programming
Everything is an Object
Common Type System
ILDASM
ILDASM in .NET SDK
Language Interoperability
Managed Code
Assemblies
Assembly Deployment
ASP.NET and Web Services
The Role of XML
Performance
Class Libraries
Objects and Components
Limitation of COM Components
Components in .NET
Class Libraries at the Command Line
Monolithic versus Component
Class Libraries Using Visual Studio
References in Visual Studio
Startup Project and Dependencies
Efficient Debugging of References
References at Compile Time and Run Time
Specifying Version Numbers
Assemblies and Deployment
Assemblies
Simple Bank
ILDASM
Assembly Manifest
Assembly Dependency Metadata
Assembly Metadata
Versioning an Assembly
AssemblyVersion Attribute
Strong Names
Digital Signatures
Verification with Digital Signatures
Hash Codes
Digitally Signing an Assembly
Digital Signing Flowchart
Signing the BankLib Assembly
Signed Assembly Metadata
Private Assembly Deployment
Assembly Cache
Deploying a Shared Assembly
Signing Using Visual Studio
.NET Framework Configuration Tool
Versioning Shared Components
How the CLR Locates Assemblies
Resolving an Assembly Reference
Version Policy in a Configuration File
Configuration Tool and Config
Finding the Assembly
Metadata and Reflection
Metadata
Reflection
Compiler Options and Reflection
System::Reflection::Assembly
System::Type
System::Reflection::MethodInfo
Dynamic Invocation
Late Binding
I/O and Serialization
Input and Output in .NET
Directories
Files and Streams
"Read" Command
Code for "Write" Command
Serialization
Attributes
.NET Programming Model
Garbage Collection
Finalize Method
Deterministic Cleanup
Garbage Collection Performance
Generations
Processes
Threads
.NET Threading Model
Race Conditions
Thread Synchronization Programming
Monitor
Synchronization of Collections
Application Isolation
Application Domain
Application Domains and Assemblies
AppDomain
CreateDomain
App Domain Events
.NET Security
The Internet and .NET Security
Code Access Security
Role-Based Security
.NET Security Concepts
Configuring Security in .NET
Caspol.exe
Policy Levels
Code Groups
Standard Code Groups
Other Assemblies
Programming Code Access Security
Evidence-Based Security
Host and Assembly Evidence
Enumerating Evidence
Imperative CAS Using Evidence
EvidenceCASClient Program
DoSomethingForClient Method
Verifiable Assemblies
Running over the Intranet
Configuring LocalIntranet_Zone
Permissions
IPermission Interface
IPermission Demand Method
IPermission Inheritance Hierarchy
Stack Walking
Assert
Deny
PermitOnly and Revert
Other CAS Methods
ZoneIdentityPermission Class
Declarative CAS
Interoperating with COM and Win32
Interoperating Between Managed/Unmanaged Code
Managed and Unmanaged Code
COM Interop and PInvoke
Calling COM Components from Managed Code
The TlbImp.exe Utility
TlbImp Syntax
Using TlbImp
Register the COM Server
OLE/COM Object Viewer
Run the COM Client
Implement the .NET Client Program
Import a Type Library Using Visual Studio
Platform Invocation Services (Pinvoke)
Marshalling Output Parameters
Translating Types
Database Programming Using ADO.NET
ADO.NET
ADO.NET Architecture
.NET Data Providers
Programming with ADO.NET Interfaces
.NET Namespaces
Connected Data Access
Connecting to an OLE DB Data Provider
Using Commands
Creating a Command Object
ExecuteNonQuery
Using a DataReader
Disconnected Datasets
Data Adapters
Command Builder
Main Program
Creating a Data Adapter and Generating Commands
Filling the Dataset
Displaying the Data Set
Adding a Row to the Data Set
Deleting a Row
Changing a Row
Updating the Database
Data Bound Controls
DataGridView Control
Performing a Query
Creating a DataSet Manually
Manual DataSet Code
Using XML Data
XML Schema and Data
Using XML with a DataSet
What makes the .NET Framework hard to learn from C++/CLI
The language is rarely the obstacle for this audience. The difficulty is that the runtime now owns things a native C++ developer used to control: object lifetime, type loading, binding to other code, and what code is allowed to do. The syllabus builds these layers in order.
- Runtime model first. The Common Language Runtime, metadata, the Common Type System, managed code and assemblies, inspected with ILDASM. Later topics assume you can read a manifest.
- Assemblies and versioning. Strong names, digital signatures and hash codes, private versus shared deployment, the assembly cache, and how the CLR locates an assembly using version policy in a configuration file. Many developers assume a reference binds to whatever file is nearby. The binding rules are stricter and easy to get wrong.
- Reflection and dynamic invocation. System::Reflection::Assembly, System::Type, MethodInfo and late binding, which depend on the metadata material.
- Memory and concurrency. Garbage collection, generations, the Finalize method and deterministic cleanup. The common misconception is that a collector removes the need to think about resources. The threading topics (race conditions, Monitor, synchronizing collections) and application domains follow.
- Security. Code Access Security is the densest block: policy levels, code groups, evidence, permissions, stack walking (Assert, Deny, PermitOnly), and imperative versus declarative checks. It makes sense only after the assembly and evidence concepts.
- Crossing boundaries. COM interop with TlbImp, Platform Invocation Services (PInvoke), and marshalling and type translation. Errors here often surface only at runtime.
- Data access. ADO.NET connected access (commands, DataReader) and disconnected DataSets with data adapters, data-bound controls and XML.
Who this course suits and what to take around it
The stated prerequisite is an experienced application developer or architect who already works in C++/CLI and has built simple Windows Forms GUIs. The course does not teach the language. It covers the framework services around it, and it suits people who build, maintain, support or migrate existing .NET applications written in C++/CLI.
If your C++/CLI syntax is not yet fluent, C++/CLI Essentials is the natural step before this course, because every framework example assumes you can already read managed C++ constructs. If your team's gaps are in native C++ rather than the managed side, the C++ Programming courses and learning guide lists the options.
Organizations that work with newer framework releases than the topics here reflect can ask about tailoring a private course. Request a training proposal to discuss the versions your team uses.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Shared library across several applications. A team might split common business logic into a signed class library used by multiple Windows Forms programs. The assembly, strong name, shared deployment and version policy topics address how the CLR resolves which version each application loads, and how to redirect it without recompiling.
- Wrapping an existing component. A team might need managed code to call an older COM server and a few Win32 functions. TlbImp, PInvoke, output-parameter marshalling and type translation are the relevant topics, along with deterministic cleanup for the unmanaged resources involved.
- Data maintenance tool. A developer might build a desktop tool that loads rows into a DataSet, lets users edit them in a DataGridView, and writes changes back through a data adapter and command builder. The XML schema and DataSet topics apply if the same data must be exchanged as XML.
Using AI coding assistants with these topics
AI coding assistants can explain unfamiliar framework types, summarize what an ILDASM listing shows, draft reflection or ADO.NET boilerplate, and suggest tests. They are weaker in places that matter for this material.
- Language drift. C++/CLI is a niche dialect. Suggestions may mix in C# idioms or plain native C++ that will not compile as managed code. Compile everything and read it critically.
- Lifetime and cleanup. Generated code can confuse finalization with deterministic cleanup, or leak unmanaged handles after a PInvoke call. Review each resource's owner explicitly.
- Threading. Plausible but unsynchronized code is common. Review every shared collection and lock scope by hand, and stress-test it.
- Security and versioning. Code Access Security policy, Caspol usage and assembly binding rules are intricate and version-dependent. An assistant may give confident but wrong configuration. Verify by inspecting the assembly manifest, testing binding with the actual configuration files, and checking permissions at run time.
- Interop signatures. Wrong marshalling declarations may run and silently corrupt data. Test with known inputs and outputs.
Compiler warnings, ILDASM inspection, unit tests and code review remain the verification tools; the assistant only accelerates drafting.
Frequently asked questions
What level is this course?
It is a general-level, three-day course for experienced developers or architects who already work in C++/CLI. It covers core .NET Framework services rather than language basics.
What should I know before attending?
A working knowledge of C++/CLI, including building simple Windows Forms GUIs, and experience as an application developer or architect.
What does the course cover?
The CLR and assemblies, deployment and versioning, strong names, reflection, I/O and serialization, garbage collection, threading, application domains, Code Access Security, COM and Win32 interoperability, and ADO.NET with DataSets and XML.
Can this be delivered privately for our team?
Yes. HSG delivers private training onsite at your location or live online for organizations.
Can the content be customized?
Private courses can be tailored, including to the technology versions your organization uses. Use the training proposal request to describe your needs.
Training locations
.NET Framework Using C++/CLI training across the U.S. and beyond.
We provide private .NET Framework Using C++/CLI training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all .NET Framework Using C++/CLI training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.