• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Not all classes of DLL gets registered

I have created one DLL using VB.NET Visual studion 2005, it has four forms- Dockwin1, Dockwin2, Dockwin3 and Dockwin4.
This DLL is of .NET Type and i want to make it work through COM Interface. So I registered it using regasm.exe.

But the problem is that not all the classes inside that DLL were registered. (I checked regedit and looked for GUID of those classes)

Then I created installation application to install this DLL to find if those classes gets registered or not. Then i checked regedit and i found that GUID of those previously missing classes were there but there was no name against those GUIDS in the registry...In the registry, the keys are under mycomputer - >HKEY_CLASSES_ROOT->clsid-->GUID--, but in the  key there was no value in that key. Like for the some classes of that DLL which were registered it had the name of the Class against the GUID value in the registry...  
Due to all these issues, when i try to access those unregistered forms from outside application,  i get COM Exception as they are not registered correctly

Pl help me how to register these classes
  • 2
1 Solution
Miguel OzSoftware EngineerCommented:
You need to define all your com functionality as interfaces not forms.
at999Author Commented:
i found the solution.... thanks mas_oz2003

i had changed the constructors of those classes so it was not getting registered..... thanks for your help ....
at999Author Commented:
i found the solution myself but the suggestions were useful

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now