© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. GladstoneC++ Software Interoperability for Windows Programmershttps://doi.org/10.1007/978-1-4842-7966-3_3

3. Building a C++/CLI Wrapper

Adam Gladstone1  
(1)
Madrid, Spain
 

Introduction

In this chapter, we build our first wrapper component. We use C++/CLI which allows .NET clients to call C++ code. We take StatsLib, our small library of statistical functions that we built in Chapter 2, and expose the functionality via C++/CLI.

The intention of this chapter is to create a fully working and usable .NET component, albeit with limited functionality. The reason for this is to cover as many of the technical details as possible in a realistic context. On the other ...

Get C++ Software Interoperability for Windows Programmers: Connecting to C#, R, and Python Clients now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.