简体   繁体   中英

Automatic conversion of C++ API to C#?

I am wondering if there is something like automatic conversion/wrapper code generation of a c++ API to C#?

Specifically I am seeking a way to call the Remote Desktop Services API from C#.

A suggestion: C++/CLI. Using the C++/CLI you can use the libraries written in C/C++ to C/C++ along with of the .net libraries/dll's. More information: A first look at C++/CLI

No you definitely need to create an interop code. If it's a COM api there is some sort of support for using it directly with C#

You might try either decompiling RDCMan (http://www.microsoft.com/download/en/details.aspx?id=21101), it does it. Or there is an open source project on Codeplex that does it as well.

http://terminals.codeplex.com/

EDIT:

There is also a tool that Microsoft provides call aximp (http://msdn.microsoft.com/en-us/library/8ccdh774(v=VS.100).aspx). If you run aximp.exe {{path_to}}\\mstscax.dll, it will generate a .NET WinForms control library that wraps the ActiveX control.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM