Excel未检测到某些C ++ COM服务器双接口例程。 [英] Some of the C++ COM server dual interface routines are not detected by Excel.

查看:67
本文介绍了Excel未检测到某些C ++ COM服务器双接口例程。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个MFC MDI应用程序,自动化层实现为双接口。因此支持早期和晚期绑定客户端。

使用早期绑定客户端作为C#等等一切都很好,但在这种情况下后期绑定客户端Excel,VBA报告运行时错误''438''。对象没有''这个属性或方法。

看起来后期绑定客户端没有看到来自COM接口的一些方法。

enybody是否遇到过这种问题?

And可能是什么决议。

任何建议表示赞赏。

谢谢。

解决方案

您好,



看起来你有类型库链接或对象idl与应用程序的不同版本

比实际的ocx。

你的问题是否因为调用某些方法而发生?



我认为你可以在这里找到一些有用的信息:http://www.vbforums.com/showthread.php?460591-RESOLVED- Runtime-error-438-Object-does-t-support-this-property-or-method [ ^ ]



问候,

Maxim。


也许你在失败的方法中有一些与自动化不兼容的东西。



如果你发布失败方法的声明(IDL) / C ++)然后它可以识别什么。



以下主题列出自动化兼容类型 [ ^ ]

I have an MFC MDI application with the automation layer implemented as dual interface. So the the early and late binding clients are supported.
With the early binding clients as C#, etc. everything is fine, but late binding clients in this case the Excel, VBA report the "Run-time error ''438''. Object doesn''t this property or method.".
Looks like the late binding clients do not see some of the methods from COM interface.
Does enybody encountered this kind of problem?
And what could be the resolution.
Any kind of suggestions appreciated.
Thanks.

解决方案

Hello,

It looks like you have typelibrary linked or objects idl with different version of
the app than actual ocx.
Does your issue happend due calling some methods?

Some useful information I think you can find here:http://www.vbforums.com/showthread.php?460591-RESOLVED-Runtime-error-438-Object-doesn-t-support-this-property-or-method[^]

Regards,
Maxim.


Maybe you''ve something in the methods that are failing that is not automation-compatible.

If you post the declaration of the failing method (IDL/C++) then it maybe possible to identify what.

The following subject lists Automation Compatible Types[^]


这篇关于Excel未检测到某些C ++ COM服务器双接口例程。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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