Clone scapix-com/example1 repository:
git clone https://github.com/scapix-com/example1
vs_cs.cmd script to generate Visual Studio solution for C#:
cd example1 vs_cs.cmd
Open generated solution in
There are two targets in this solution:
chat- C# executable
chatlib- C++ DLL
chat target open source file
Here you will find multiple calls to C++ functions declared in C++ header files
session.h, etc. which reside in
chatlib C++ target.
You can place breakpoint in
Program.cs file, run the project and examine values returned from C++. You can also add new C++ functions to
build solution (C# bindings automatically generated during build), then add calls from C#
Program.cs file to your newly added C++ functions.