回答
您可能會嘗試反編譯RDCMan(http://www.microsoft.com/download/en/details.aspx?id=21101 ),它做到了。或者在Codeplex上有一個開源項目也是如此。
http://terminals.codeplex.com/
編輯:
還有微軟提供呼叫aximp工具(http://msdn.microsoft.com/en-us/library/8ccdh774(v=VS.100)的.aspx)。如果運行aximp.exe {{path_to}} \ mstscax.dll,它將生成一個包裝ActiveX控件的.NET WinForms控件庫。
我現在使用終端項目,它有我需要的所有interop代碼。謝謝你的幫助! – Erik
c:\ windows \ system32 \ mstscax.dll是一個可立即使用的ActiveX控件。 –
不,你一定需要創建一個互操作代碼。 如果它是一個COM API有直接與C#使用它的某種支持類型
建議:C++/CLI。 使用C++/CLI,您可以將使用C/C++編寫的庫與.net庫/ dll一起使用到C/C++。更多信息: A first look at C++/CLI
- 1. 將C轉換爲MPI API C程序
- 2. 自動轉換,C#
- 3. C++自動轉換
- 4. 將c#RSACryptoServiceProvider轉換爲C++
- 5. 將QT/C++轉換爲C#
- 6. 將C++轉換爲objective-c
- 7. 將C++/CLI轉換爲C#
- 8. 將簡單的C++代碼自動轉換爲C#
- 9. 將cURL代碼轉換爲c#izooto api
- 10. C#將C#6.0轉換爲C#4.0
- 11. C++自動「類型轉換的轉換
- 12. DatetimePicker自動轉換C#
- 13. 手動將C代碼轉換爲Python
- 14. 將VB轉換爲C#類型轉換
- 15. 將XAML轉換爲c#
- 16. 將XAML ObjectDataProvider轉換爲C#
- 17. 將C#Lambda轉換爲VB.NET
- 18. 將DateTime.Today轉換爲int c#
- 19. C# - 將uint轉換爲byte []
- 20. 將double []轉換爲System.array c#
- 21. 將JavaScript轉換爲C#
- 22. 將GLSL轉換爲C#
- 23. 將ARM轉換爲C
- 24. C#將Microsoft.Sharepoint.Client.FieldUserValue轉換爲Microsoft.Sharepoint.Cliend.User
- 25. 將PHP CURL轉換爲C#
- 26. 將C#行轉換爲VB.net
- 27. 將wchar_t轉換爲char C++
- 28. 將objective-c轉換爲ruby
- 29. 將python轉換爲C++
- 30. 將Objective-C轉換爲Swift
它真的是C++ API還是C API?對於C++來看看SWIG。對於c API檢查http://clrinterop.codeplex.com/releases/view/14120 – CodesInChaos