转换C#项目成为DLL的C ++项目 [英] Convert C# project into Dll for C++ project

查看:153
本文介绍了转换C#项目成为DLL的C ++项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个新手,C#。我目前正在学习C#代码。我的最终目标是将C#项目转换为一个dll,这样我可以在我的C ++的exe使用它。我使用VS2005。

I am a newbie to C#. I am currently working on learning C# code. My final goal is to convert a C# project into a dll so that I can use it in my C++ exe. I am using VS2005.

我在想,如果有可能,如果是这样我会很感激在这方面的一些指导和建议,

I was wondering if it's possible and if so I would appreciate for some guidance and suggestions in this regards,

请做回复回来,

推荐答案

为什么不使一个COM对象你的管理lib和通话它从非托管C ++代码?如果你知道如何在C ++中管理COM这是比较容易做到的..
http://msdn.microsoft.com/en-us/library/aa645736(v = vs.71)的.aspx

Why not to make a com object out of your managed lib and call it from the unmanaged c++ code? It's relatively easy to do if you know how to manage com in c++.. http://msdn.microsoft.com/en-us/library/aa645736(v=vs.71).aspx

这篇关于转换C#项目成为DLL的C ++项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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