编写(.Net dll)包装器的代码,将由c ++客户端访问。 [英] Code to write a Wrapper for (.Net dll) which will be accessed by the c++ client.

查看:78
本文介绍了编写(.Net dll)包装器的代码,将由c ++客户端访问。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个c#(。net dll),我必须为此编写一个包装器,它将由c ++客户端访问。请提供包含执行此操作的步骤的链接。

I have a c# (.net dll) and I have to write a wrapper for this which will be accessed by the c++ client . Please provide the link which contain steps for doing this.

推荐答案

如果您拥有.net dll的来源,更简单的方法是制作相关课程COM可见。重新构建之后,使用regasm注册dll,并像其他任何COM dll一样从非托管C ++访问它。
If you have the sources of the .net dll, the easier way to go is to make the relevant classes COM visible. After re-building, register the dll with regasm and access it from non-managed C++ like any other COM dll.


这篇关于编写(.Net dll)包装器的代码,将由c ++客户端访问。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆