upgraded vba dll to vb.net dll not working with createobject

G

givmemore001

Hi ,
I am working on a project to upgrade vb6 dlls, which we use in our vba
project, to vb.net

So I made a sample vb6 activex dll, which has a function that
displays a message box.
Then I upgraded this dll to vb.net and did all the stuff that one
usually does to make a .net assembly visible to COM / vb6.

1) Made the .net dll com visible.
2) registered for COM interop
3) Signed with a strong name and built the project.

Now I tried to display the message box, using VBA.

dim abc as project1.class1
set abc = new project1.class1
abc.display

------it displayed the message box present in the dll.

But when i tried with createobject, an error message comes saying '
ActiveX component cannot create the object'

dim myobj as object
set myobj = createobject("project1.class1")
myobj.display

I tried my best and searched the net for some help but couldnt get
anything.

So could you tell me why this works with early binding(new) and not
with late binding(createobject).
I really need to use createobject in my project.
Any ideas??

Please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top