使用本机C内的.NET编译的dll ++ [英] Using a .net compiled dll inside native c++

查看:171
本文介绍了使用本机C内的.NET编译的dll ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,任何.NET程序被编译成MSIL,被送到其编译到大会code和随着JIT的帮助它执行它的CLR。

as i understand that any .NET program gets compiled to MSIL which is fed to the CLR which compiles it to the assembly code and along with the help of JIT it executes it.

我不知道,因为.NET是围绕在Win32 API的包装和CLR最终MSIL转换成汇编程序。是不是有可能对我来说,C#编写一些功能,做出一个DLL,然后我用一个工具,这使它成为一个完整的.NET独立的文件对我来说,内部非托管code C或C ++使用等。

I was wondering, as .NET is a wrapper around the win32 api and the CLR ultimately converts the MSIL to assembly program. Isn't it possible for me to write some functionality in C#, make to a dll and then i use a tool which makes it a complete .net independent file for me to use inside unmanaged code like in C or C++.

我在谈到互操作性展示和COM?是不是这种想法不同吧?我的目标是运行在机器上的.NET的DLL没有.NET框架。

Am i talking about Interops and COM? Isn't this idea different from it? My aim is to run a .NET dll on machine not having .NET framework.

推荐答案

<一个href="https://sites.google.com/site/robertgiesecke/Home/uploads/csharpprojecttemplateforunmanagedexports"相对=nofollow>这个项目将让你做出的静态方法不受管理的出口.NET。

This project will allow you to make unmanaged exports .NET of static methods.

这篇关于使用本机C内的.NET编译的dll ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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