如何从VC ++项目中调用C#dll [英] How to call a C# dll from VC++ project

查看:662
本文介绍了如何从VC ++项目中调用C#dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道如何在VC ++ 6.0项目中引用C#COM dll.但是我必须引用C#

VC ++ 6.0项目中包含dll(不是COM dll).我该如何参考.请帮助我

预先感谢

Hi,

I know how to refer a C# COM dll inside VC++ 6.0 project.But I have to refer C#

dll(Not a COM dll)inside VC++ 6.0 project.How can I refer.Please help me

Thanks in advance

推荐答案

您好,几年前我就这样做了,所以我只能为您提供有关该问题的一些具体信息:

我开发了托管C ++ dll作为桥梁.可以从非托管c ++ dll调用此dll,并且可以调用.Net程序集的托管代码.

希望对您有帮助
Hi, I did do this some years ago, so I only can give you some unconcrete information about that issue:

I developed a managed C++ dll as a bridge. This dll can be called from an unmanaged c++ dll and is able to call the managed code of a .Net assembly.

Hope this helps


这篇关于如何从VC ++项目中调用C#dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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