The Apache
The Apache

Reputation: 1074

How do I convert a normal visual basic collection class object to MSVBVM60 Collection

I'm facing a problem while converting a normal visual basic collection to MSVBVM60 collection.

Here is the snippet of the code I have used.

MSVBVM60.Collection x = new MSVBVM60.Collection();

Microsoft.VisualBasic.Collection y = new  Microsoft.VisualBasic.Collection();

.
.
//y = func(); I get 'y' from this function.

x =(MSVBVM60.Collection)y;

Now, this step of mine fails with an exception "Microsoft C++ exception: EEMessageException at memory location 0x04B2CBDC."

So, can someone please help me with this??

Upvotes: 0

Views: 579

Answers (1)

The Apache
The Apache

Reputation: 1074

Found a very good solution to this specific problem.

Here is the link. Go for the workaround

http://support.microsoft.com/kb/323737

Upvotes: 1

Related Questions