基于C++/CLI实现托管代码与非托管代码的交互  被引量:1

Using C++/CLI to Realize the Interaction between Managed Code and Unmanaged Code

在线阅读下载全文

作  者:冯士德[1] 

机构地区:[1]上海交通大学软件学院

出  处:《微型电脑应用》2013年第1期38-40,44,共4页Microcomputer Applications

摘  要:在软件项目的开发过程中,总是会存在一些涉及托管代码与非托管代码之间互操作的需求。由于这两类代码执行机制不同,造成了这两类代码间的交互存在一定的障碍。而C++/CLI代码却是一种特殊的编程技术,它介于托管代码与非托管代码之间。所以以C++/CLI代码作为中介,可以简单且高效的实现托管代码与非托管代码之间的交互。对如何使用C++/CLI代码实现托管代码与非托管代码之间的交互进行了研究,并以C#代码为例展示了其交互方式,最后通过一个试验,对此交互方式的执行效率进行了验证。There always exist the requirement of the interaction between managed code and unmanaged code in some software de-velopment project.But there is a gap between managed code and unmanaged code,because the difference of the run principle.C++/CLI is a special program technology.It can deal with both managed code and unmanaged code.So with the help of C++/CLI,we can realize the interaction between managed code and unmanaged code.This paper will discuss about how to realize the interac-tion between managed code and unmanaged code by using C++/CLI,and use a C# Sample to show the interaction method.

关 键 词:C++ CLI 托管 非托管 代码交互 C# 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象