I created a small demo solution in VS2022 that contains 3 projects. The NetServerTypes project uses an IDL file to create a type library. The NetServerTest project builds the C# COM Server, embeds created type library as a resource and also uses a post-build event to register the server and the type library. COM registration requires elevated privileges so run Visual Studio as Administrator when you build the solution. The CppClient project is a minimal C++ console application that imports the registered type library to generate required headers. It instantiates the COM object and calls methods and gets a property.
The demo is at https://1drv.ms/u/c/c389bf4121acea69/EfUvHqqc66tNjGT-AJOGPBEBfDHhtc3IfbfbnjZTRF9elw?e=oRkujI