如何配置Interop服务器位置 [英] How to configure Interop server location

查看:148
本文介绍了如何配置Interop服务器位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用C#/Windows Forms/.Net 2.0编写的COM服务器.如果我正确安装它并注册COM互操作,则所有C ++客户端都会发现它很好,无论它们位于何处.不幸的是,除非该DLL是,否则我的C#客户端将找不到此C#DLL. 与客户端位于同一文件夹中.注册COM互操作无济于事. (同一个C#客户端可以找到用C ++编写的常规COM服务器,无论它们位于何处,只要它们被注册即可.)

我需要配置什么才能使我的C#客户端找到C#COM DLL?

解决方案

GregKhra,

请检查它是否有用:

http://www.codeproject.com/Articles/18939/C-Com


I have a COM server written in C#/Windows Forms/.Net 2.0.  If I properly install it and register for COM interop, all C++ clients find it just fine regardless of their location. Unfortunately my C# client would not find this C# DLL unless the DLL is in the same folder with the client. Registering for COM interop doesn't help. (The same C# client finds regular COM servers written in C++ no matter where they are located as long as they are registered).

What do I need to configure in order to make my C# client find C# COM DLL?

解决方案

Hi GregKhra,

Please check if it is usefule:

http://www.codeproject.com/Articles/18939/C-Com


这篇关于如何配置Interop服务器位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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