Calling CLR based C++ managed DLL from C#

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

  • : 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

  • : : 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.
  • 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.

Howdy, Stranger!

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

Categories