Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
givmemore001 - 15 May 2008 12:40 GMT
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.
givmemore001 - 21 May 2008 09:16 GMT
check out this link , if anyone has same problem

http://www.codeproject.com/KB/vb/MusaExposingCOM.aspx#_top

> Hi ,
> I am working on a project to upgrade vb6 dlls, which we use in our vba
[quoted text clipped - 33 lines]
>
> Please help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.