Accessing and using managed Struct from COM
From: Mortimer Schnurd (fugetaboutit_at_hotsmail.com)
Date: 12/13/04
- Next message: Daryn Kiely: "Thread Local Storage"
- Previous message: M K: "Re: Walking through an Iterator, calling unmanaged code gives erro"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Dec 2004 16:59:13 -0500
I have a simple Struct in a C# assembly which I would like to use in a
VB6 application. If the Struct contains only int types, VB6 has no
problem referencing the fields and intellisense picks them up fine.
However, as soon as I add a string type to the C# struct, VB6 can no
longer "see" any of the fields.
How do I get VB6 to "see" the struct when it contains string types?
Example Code that works:
public struct MyStruct
{
int x;
int y:
}
Example Code that doesn't work:
public struct MyStruct
{
int x;
int y;
string zText;
}
-- Regards, John Wood a.k.a Mortimer Schnurd johnp.wood@dropthistaggmail.com (to reply: remove "dropthistag")
- Next message: Daryn Kiely: "Thread Local Storage"
- Previous message: M K: "Re: Walking through an Iterator, calling unmanaged code gives erro"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|