VB6 objects to .Net ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I have some COM objects. The example in VB6 :

Set Conn = Application.Document.Connections(1)
Set Meta.Connection = Conn

But I need to convert everything from object type to some normal type ;)
So application.document is casted to document type. Then we have
document.connections - but it's object type not collection. What can I do ? I
don't have source, only dll references. And there is no connections data type.
Please help.
Jarod
 
Hi,

Have you tried to import the COM object into .NET? Just reference the COM on
your reference list and the .NET will create a wrapper.

Hope this helps
Salva
 
Hi,
Have you tried to import the COM object into .NET? Just reference the COM on
your reference list and the .NET will create a wrapper.

My problem is it's already converted as Interop. But... this was old VB6
objects. So it's not some nice types but mostly objects ( I mean type not a
class instance ). And it doesn't work as manual says about vb6. Please read
my first post take look at the example this is in vb6 and I wrote why I have
problems with this.
Jarod
 
Back
Top