I am having problems when using a VB.NET dll in a VB6 program. I have already created my dll with the GuidAttribute, used the RegAsm to create a tlb and added it to the references of my VB6 program. The problem is when I try to create the object using CreateObject function, however the following error shows up "ActiveX component can't create object."
I don't know if I am missing any declaration on VB.NET to use it as a dll or if I am not using the CreateObject function properly.
A complete article about Calling .Net Classes from Visual Basic 6: http://www.devsource.com/c/a/Using-VS/Calling-Net-Classes-from-Visual-Basic-6/
Creating a COM DLL with VS 2005: A walk through: http://www.codeproject.com/KB/COM/VS2005ComDllWalkThru.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With