Calling a C# from C++

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tony Mitri

    #1

    Calling a C# from C++

    Hi All,
    Is there a way to instantiate a C# class and call its
    methods from C++.

    The C# class was built using VS.NET 2003
    The C++ COM object was built using VC++ 6.0

    Thanks
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Calling a C# from C++

    Tony,

    Yes, there is. You would have to export your C# assembly to COM using
    the TLBEXP utility, and then access the objects/methods through your C++
    code as if it was a COM object.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "Tony Mitri" <tony_mitri@hyp erion.com> wrote in message
    news:011a01c351 f7$b48b35e0$a10 1280a@phx.gbl.. .[color=blue]
    > Hi All,
    > Is there a way to instantiate a C# class and call its
    > methods from C++.
    >
    > The C# class was built using VS.NET 2003
    > The C++ COM object was built using VC++ 6.0
    >
    > Thanks[/color]


    Comment

    Working...