Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have registered a .net COM dll using the regasm tool and the registration was successful. It says 'Type registered successfully'. But when I open registry I cannot see my dll there. I searched using both ProgId & clsId but not there.

I registered another dll too in same way and it got registered successfully and I am able to access it from a VB6 dll.

What problem could it be. Something wrong with the dll? I set the project properties for both my dlls in same way and one seems to got registered successfully.

I am supposed to test the dll accessing from an existing vb6 tool and unable to start it.

Thanks

Nishitha

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
158 views
Welcome To Ask or Share your Answers For Others

1 Answer

Use regasm.exe with the /regfile option. This will create a reg file containing all entries that are going to be created when registering an assembly.

If the file does not contain any entries, your assembly does not export any COM types. Then you need to make sure that you either flag the Make assembly COM visible option in the project properties or use the [ComVisible(true)] attribute on the respective types.

If you are on a 64-bit system, make sure you are using the correct version of regasm as there are separate versions for 32-bit and 64-bit:

  • %SYSTEMROOT%Microsoft.NETFramework<framework version> egasm.exe
  • %SYSTEMROOT%Microsoft.NETFramework64<framework version> egasm.exe

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...