是德科技
直播中

李秀云

7年用户 815经验值
私信 关注
[问答]

vrf ActiveX用户定义的类型

嗨,罗斯。>用户定义的类型你知道,我只是在玩一些这样的东西并发现它不应该是一个问题*只要类型被暴露* viathe类型库。
如果你有OLE / COM对象查看器(它是Visual C ++包的一部分,所以有人应该把它放在某个地方)试着看看这些控件,看看你是否能找到一个你应该遇到问题的原因。-SHAWN--
--------------------------------------------------
------------------这是由Majordomo管理的“vrf”maillist。
要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。
订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.---
--------------------------------------------------
----------------

以上来自于谷歌翻译


     以下为原文

  Hi again Ross.

> user defined types

You know, I was just playing around with some of this kind of stuff and
found that it shouldn't be a problem *as long as the types are exposed* via
the type library. If you have the OLE/COM Object viewer (it's part of the
Visual C++ package, so somebody should have it around somewhere) try taking
a look at these controls with that and see if you can find a reason you
should be having problems.
-SHAWN-

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

回帖(2)

李秀云

2018-9-5 09:52:39
ActiveX用户定义的类型我在我的VEE应用程序中使用了一些ActiveX对象。
这些物品是由公司其他人为我们的产品开发的。
某些属性需要在对象中声明的用户定义类型。
我不知道如何将变量定义为对象所需的类型。
创建对象没有问题。
此致,Ross Bledsoerbledsoe@coinco.com

以上来自于谷歌翻译


     以下为原文

  ActiveX user defined types        I am using some ActiveX objects in my VEE application.  These objects were developed for our products by other people in the company.  Some of the properties require user defined types that were declared in the objects.  I do not  know how to define a variable as the type that the object requires.  Creating the objects is no problem.  Regards,Ross Bledsoerbledsoe@coinco.com
举报

李秀云

2018-9-5 10:07:08
嗨罗斯。>用户定义的类型如果这些用户定义的类型分解为简单类型(如short,long,float等),那么你可以要求提出这些控件的人重新定义lib类型。如果他们是
虽然很复杂(比如结构)然后你很好搞砸了。你可以问这些人们请将它们重新定义为Variant containstype SAFEARRAY,然后使用VEE 6并尝试弄清楚如何使用VEE&
传递那个。可能最好的想法是将控件升级到新版本,添加Interface2.FunctionName只需要简单类型,构建自定义类型并将其传递给原始函数。
我不是ActiveXdude,但在COM的世界里,这几乎是公认的做法。-SHAWN ----------------------------
------------------------------------------这是“vrf”maillist,
由Majordomo管理。
要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。
订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.---
--------------------------------------------------
----------------

以上来自于谷歌翻译


     以下为原文

  Hi Ross.

> user defined types

If these user-defined types break down to simple types (like short, long,
float, etc.) then you can ask the folks who came up with these controls to
please redefine the type lib.

If they're complex though (like structures) then you're pretty well screwed.
You can ask these kind folks to please redefine them as Variant containing
type SAFEARRAY, then use VEE 6 and try to figure out how to build a
SAFEARRAY with VEE & pass that.

Probably the best idea is to have the controls upgraded to a new version,
adding Interface2.FunctionName which would take only simple types, build the
custom types and pass that on to the original functions. I'm no ActiveX
dude, but in the world of COM this is pretty much the accepted practice.
-SHAWN-

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
举报

更多回帖

发帖
×
20
完善资料,
赚取积分