Calling CLR based C++ managed DLL from C# - Programmers Heaven

Howdy, Stranger!

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

Categories

Calling CLR based C++ managed DLL from C#

biased36biased36 Posts: 9Member
Hello everybody,
I want to know the way of creating CLR based C++ managed DLL in MS Visual Studio 2008. Please inform me elaborately even with code(example).

I also wanna know how can I call the functions of that DLL from Windows C# application.
Redirect me to the appropriate link, if possible.

Thanks to all.

Comments

  • michakmichak Posts: 10Member
    : Hello everybody,
    : I want to know the way of creating CLR based C++ managed DLL in
    : MS Visual Studio 2008. Please inform me elaborately even with
    : code(example).
    :
    : I also wanna know how can I call the functions of that DLL from
    : Windows C# application.
    : Redirect me to the appropriate link, if possible.
    :
    : Thanks to all.
    :
    IMO library wrote in C# you can call only in C# applications

  • itdelphiaitdelphia Posts: 28Member
    : : Hello everybody,
    : : I want to know the way of creating CLR based C++ managed DLL in
    : : MS Visual Studio 2008. Please inform me elaborately even with
    : : code(example).
    : :
    : : I also wanna know how can I call the functions of that DLL from
    : : Windows C# application.
    : : Redirect me to the appropriate link, if possible.
    : :
    : : Thanks to all.
    : :
    : IMO library wrote in C# you can call only in C# applications
    :
    :
    CLR is design for multilanguages. Its libraries are fully can be used in many languages. I think you only need to add that DLL reference to your projects, and simply use it as other objects.
  • jnnnnnjnnnnn Posts: 1Member
    You can make a c++ managed dll by going File->New Project. Under Visual C++ there is a CLR option - choose the Class Library template under here to create a managed c++ dll.

    You can include this dll in a c# project by right-clicking on the c# project in the solution explorer, choosing Add Reference, and choosing your project from the Projects tab.
Sign In or Register to comment.