C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Calling CLR based C++ managed DLL from C# Posted by biased36 on 30 Dec 2008 at 1:58 AM
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.
Report
Re: Calling CLR based C++ managed DLL from C# Posted by michak on 30 Dec 2008 at 3:48 PM
: 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

Report
Re: Calling CLR based C++ managed DLL from C# Posted by itdelphia on 3 Jan 2009 at 11:08 PM
: : 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.
Report
Re: Calling CLR based C++ managed DLL from C# Posted by jnnnnn on 3 Feb 2009 at 4:40 PM
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.



 

Recent Jobs