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

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.