I want use a .net dll in vb6. I have registered dll with resgam. I have generated .tlb file. I have add in references tlb file. But when I run it tak error "File or asembly name xxxx , or one of its components, was not found".
Before register with resgam the error was "ActiveX component can't create object".
Do you know how use .net dlls in vb6
Thanks
_______________
HipHop Directo
Foros de musica

Use .net dll in VB6?
dgVisioscopie
Can u plz send me the steps to use .NET dll in VB 6.0
Thanks
cn_sean
Thanks
Peter Koller
I get what you mean by the first 4 steps, but I don't understand how to do the 5th step. How to add an interface to the class library Could you please show me some example how to do so.
One more thing is, do the steps you mention is workable in VS2003
Thank you.
Mark Zhou (Wicresoft)
1.create class library using VS2005
2. Select Register for COM Interop
3. In VB app - add reference (I did not need to RegAsm or TlbExp... just checking the register for COM Interop seemed to take care of that)
4. create instance of the object in VB. This compiled fine and I could see the class in the object browser but I could not see anything in the class with the object browser until....
5. I had to add a interface to the class library and compile again... then the class members showed up in the VB browser and intellesense started working in VB with the class library.
Russ
Steve9312