creating a com module - example

Hello,
I've got to use a C# module in managed code ( vc). So I got to use it via COM, or is there another way? I need a good example / documentation to do this.
Thank you, Petra

Comments

  • : Hello,
    : I've got to use a C# module in managed code ( vc). So I got to use it via COM, or is there another way? I need a good example / documentation to do this.
    : Thank you, Petra
    :

    Hi,

    In the Project Property Pages/Configuration Properties/Build
    set Register For Com Interop to true.

    That is all you need to do.

    // Patrik
  • : : Hello,
    : : I've got to use a C# module in managed code ( vc). So I got to use it via COM, or is there another way? I need a good example / documentation to do this.
    : : Thank you, Petra
    : :
    :
    : Hi,
    :
    : In the Project Property Pages/Configuration Properties/Build
    : set Register For Com Interop to true.
    :
    : That is all you need to do.
    :
    : // Patrik
    :
    Hi Patrik,
    thank you.
    I've found out that i need also the attribut
    [System.Runtime.InteropServices.ClassInterfaceAttribute(System.Runtime.InteropServices.ClassInterfaceType.AutoDual)] if i want to get a *.tlb that i can #import in VC++ managed code.
    Regards, Petra

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories