Hi Jeff,
> I am having problems getting a component that was written in VB6 to work
> inside of vb.net. It is a queued component. Can someone send me some
[quoted text clipped - 5 lines]
> 2. Do you have to make any changes in application configuration or include
> any references/Imports to get this queued component to work?
First you need the TLB of the VB6 queued component.
From this TLB you create an interop assembly with
TlbImp. This assembly has to be added to your project.
The QC can be instantiated with (C# syntax, I don't
know much about VB.NET, sorry!):
using System.Runtime.InteropServices;
using YourInteropAssemblyNamespace;
ISomeInterface qc = (ISomeInterface)
Marshal.BindToMoniker ("queue:/new:" + progId);
- progId is the programm id of your VB6 QC.
- ISomeInterface is the interface of your VB6 QC.
When you use VB.NET's "Strict Off" you may be able to access
the QC w/out an interop assembly, but I'm not sure.
Rob
Jeff Bishop - 06 Oct 2005 17:53 GMT
Do you know of a good tool for making a tlb file from a compiled vb dll? I
saw some things on the net on this and it looked rather scary.
> Hi Jeff,
>
[quoted text clipped - 28 lines]
>
> Rob
Robert Jordan - 06 Oct 2005 18:13 GMT
> Do you know of a good tool for making a tlb file from a compiled vb dll? I
> saw some things on the net on this and it looked rather scary.
Ups! You can generate the interop assembly from the DLL
as well, because the TLB is built in.
Rob