OLEAutomation Interop with object []
From: Phil Wilson (Phil.Wilson_at_unisys.spamcom)
Date: 08/26/04
- Next message: Inbar: "Re: Using VB.Net or C#, utilizing the clipboard object, how to cop"
- Previous message: Robert Jordan: "Re: RCW/CCW between COM and .NET"
- Next in thread: Robert Jordan: "Re: OLEAutomation Interop with object []"
- Reply: Robert Jordan: "Re: OLEAutomation Interop with object []"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Aug 2004 14:16:19 -0700
There doesn't seem to be an obvious (to me anyway!) way to have an interface
in .NET that passes an object [] such that it can be used by (say) VBScript.
In other words, given a method:
[ComVisible(true), GuidAttribute("66F12379-0C8F---------- etc")]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ProgId("blah.blah")]
public class Class1: IMyInterface
{
..
public void Connect(object [] initializeData )
}
What is required (MarshalAs or whatever) is that this kind of script works:
set obj = createobject("blah.blah")
dim parm(2)
parm (1) = "this"
parm(2)="that"
obj.Connect parm
The error is pretty consistent at 0x800A0005 Invalid procedure call or
argument: 'obj.Connect'
Help Welcome, thanks.
-- Phil Wilson [MVP Windows Installer] ----
- Next message: Inbar: "Re: Using VB.Net or C#, utilizing the clipboard object, how to cop"
- Previous message: Robert Jordan: "Re: RCW/CCW between COM and .NET"
- Next in thread: Robert Jordan: "Re: OLEAutomation Interop with object []"
- Reply: Robert Jordan: "Re: OLEAutomation Interop with object []"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|