TOUGH Question - Late Bound COM objects and VB.NET 
Author Message
 TOUGH Question - Late Bound COM objects and VB.NET

At least, tough to me.

Im cleaning up code that the VB.NET Upgrade Wizard created from a VB6
ActiveX DLL project. One of the methods accepts an Object object as a
parameter.

In this function, the client always sends a string. This string is then
converted to one of the objects in my library.

Ive tried casting it to the right object using CType, and that fails.
Ive tried changing the input parameter type to varianttype, and that fails.

I dont want to rewrite the method signature. It would mean rewriting a ton
of code. Basically all I want to do is convert the string object being
passed into the object I need.

How can I do this?



Tue, 02 Aug 2005 05:55:27 GMT  
 TOUGH Question - Late Bound COM objects and VB.NET
Serializing the object solves my problem. Thank you.


Quote:
> At least, tough to me.

> Im cleaning up code that the VB.NET Upgrade Wizard created from a VB6
> ActiveX DLL project. One of the methods accepts an Object object as a
> parameter.

> In this function, the client always sends a string. This string is then
> converted to one of the objects in my library.

> Ive tried casting it to the right object using CType, and that fails.
> Ive tried changing the input parameter type to varianttype, and that
fails.

> I dont want to rewrite the method signature. It would mean rewriting a ton
> of code. Basically all I want to do is convert the string object being
> passed into the object I need.

> How can I do this?



Tue, 02 Aug 2005 08:08:12 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Only late-binding within a VB COM server?

2. Late Binding VB.net with MS Project 98

3. Problems with parameters and late-binding in VB.NET

4. Early binding and Late binding in VB.

5. Early bind and Late bind in VB.

6. Early binding and Late binding in VB.

7. Call VB DLL or COM object from within VB COM object or EXE

8. late binding privDBEngine object

9. Help with late binding converting an object to an array

10. Late Bound Intertaction with objects

11. Create Object But NOT Late Binding

12. Late binding enum object

 

 
Powered by phpBB® Forum Software