可以并排部署VT_RECORD VARIANT的互操作封送处理吗? [英] Interop marshaling of VT_RECORD VARIANTs with side-by-side deployment, is it possible?

查看:146
本文介绍了可以并排部署VT_RECORD VARIANT的互操作封送处理吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

这是我的问题,我们有一个与ATL COM dll通讯的VB.NET应用程序.一些COM接口功能参数是包含UDT(VT_RECORD)的VARIANT,需要在COM和.NET之间来回处理它们.注册COM类型 库,创建HKCR \ Record密钥并将PIA放入GAC到目前为止,这项工作已经完成,但是我们现在切换到并行部署,并且希望摆脱注册表的依赖性.这可能吗,COM DLL应该如何体现? 被配置来做到这一点?我在任何地方都找不到任何文档.

Here is my problem, we have a VB.NET application that talks to ATL COM dlls. Some of the COM interface function parameters are VARIANTs that contain UDTs (VT_RECORD) and they need to be marshaled back and forth between COM and .NET. Registering the COM type library, creating HKCR\Record keys and putting a PIA in the GAC has been doing the job so far, however we are now switching to side-by-side deployment and would like to get rid of the registry dependency. Is this possible and how should the COM DLL manifest be configured to do this? I have not been able to find any documentation on this anywhere.

谢谢

 

Pierre

推荐答案

 

皮埃尔,

 

Hi Pierre,

 

您的问题对我来说,您正在寻找一种构建免注册COM的方法,对吗?如果是这样,您可能需要阅读以下内容 文章,其中讨论了如何创建无Reg的COM服务器和客户端.并且, CSRegFreeCOMClient 项目 多合一代码框架是有关免注册COM的示例,希望它能对您有所帮助.

Your question sounds to me that you're looking for a way to build Reg-Free COM, am I right? If so, you may want to read this article which discussed how to create Reg-Free COM Server and Client; and, the CSRegFreeCOMClient project of  All-In-One Code Framework is a sample about Reg-Free COM, hope it can helps.


这篇关于可以并排部署VT_RECORD VARIANT的互操作封送处理吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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