COM Interop – C# type consumed by VB6 program – Part 2. Still searching…

If I define the type in C# as a public class instead of as a struct, I still get a compile error on the same line as before in VB6.  This time the error message is: “Only user-defined types defined in public object modules can be coerced to or from a variant or passed to late-bound functions”.

Cool.  Not.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s