Ask a questionAsk a question
 

AnswerRegister COM-classes

  • Friday, May 15, 2009 7:31 AMChris__2000 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,  I'm building com-libraries with VB-forms to extend a application. I notice a difference between classes written in VB.Net and C#.

    In VB.Net there is the COM-class template. I use this, I build it, register the COM-guid in the application and it's working.

    For C# I need to do a few more steps. Besides the fact there is no COM-class template and you need to write your own, after building the project and registering the GUID, the COM-class cannot be found. After putting the COM-class in the GAC and running the tool RegAsm.exe-tool the C# COM-class can be found.

    Why the difference?

    Thanks in advance for any responses.

    Regards,

    Chris

Answers

All Replies