在.NET中使用COM组件 [英] Using COM component in .NET

查看:85
本文介绍了在.NET中使用COM组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用.NET互操作性在.NET中使用一个COM组件。那么内存事务如何从COM发生到.NET。 


对于Ex:假设COM中有一个int数组.NET将如何知道所需的内存量?该交易是如何从.COM发送到.NET的。



最好的问候


Mrutyunjaya

解决方案

https://docs.microsoft.com/en-us/dotnet/framework/interop/default-marshaling-for-arrays


https://docs.microsoft。 COM / EN-US / DOTNET /框架/互操作/编组 - 数据 - 与-COM-互操作


I am using one COM component in .NET using .NET interoperability. So How does memory transaction happen from COM to .NET. 

For Ex : Suppose there is one int array in COM How will .NET know the amount of memory required for that ? How is that transaction happen from .COM to .NET.

Best Regards

Mrutyunjaya

解决方案

https://docs.microsoft.com/en-us/dotnet/framework/interop/default-marshaling-for-arrays

https://docs.microsoft.com/en-us/dotnet/framework/interop/marshaling-data-with-com-interop


这篇关于在.NET中使用COM组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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