开发者

Developing mixed C++ and C++/CLI for CGI and WPF

开发者 https://www.devze.com 2023-03-13 02:05 出处:网络
This is related to this question, but given the direction of the answers, I figured it would be better to ask this question separately.

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 us开发者_开发知识库ed 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消