Question

This is related to this question, but given the direction of the answers, I figured it would be better to ask this question separately.

I need to develop a class library that can be both used in CGI (long story, sigh) and referenced by c#. Since both deployments must be able to be updated simultaneously, I'm having a lot of trouble figuring out how to work the CLI/native c++ interaction.

Since I have no control over the server deployment environment, all the code exposed to it has to be native, which doesn't work for WPF. As in the related question, I'm not looking for anyone to do my work for me, just to point me in the right direction.

I've looked into COM Interop, but can't find a clear, simple example.

Was it helpful?

Solution

You could use swig to generate c# wrappers to the library then it can then be referenced from c# without any problems.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top