1
Answer

How to use a .NET dll into vb6

evaluna76

evaluna76

20y
3.2k
1
I write a dll in .NET but I need to use it in vb6. I alredy use regasm to register it but when i tried to instanciate it from vb6 i got Automation Error. Some has any idea about what is going on? Thanks
Answers (1)
0
spgilmore

spgilmore

NA 591 0 20y
Can you post the REGASM command you issued? If using Visual Studio, it's easier to tell it to export a COM type library from the IDE. To do this, set REGISTER FOR COM INTEROP to TRUE in the project properties dialog, under Configuration Properties). Did you add a reference to the object in VB or did you use late binding? Can you post the code you used to instantiate it?