我可以自动将C函数包装到C#/ .NET中吗?

编程入门 行业动态 更新时间:2024-10-22 19:29:02
本文介绍了我可以自动将C函数包装到C#/ .NET中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

基本上我希望能够创建一个指向任何静态库的程序(作为文件参数提供)并生成一系列可以在C#中使用的函数和结构。 是这可能吗?

Basically I would like to be able to create a program that points at any static library (fed as a file parameter) and generates a series of functions and structures that can be used in C# Is this possible?

推荐答案

就像已经说过的那样,这个工具已经存在于基于COM的库中。 为标准库编写这样的工具是不可能的。原因是参数和返回值信息不存储在库中。只能找到导出的函数名称。 Like has been said already, that tool already exists for COM-based libraries. It's impossible to write such a tool for standard libraries. The reason is that parameter and return value information is not stored in the library. Only the function names being exported can be found.

为什么在它已经存在的情况下创建一个免费的? tlbimp.exe [ ^ ] Why create one when it already exists, for free? tlbimp.exe[^]

更多推荐

我可以自动将C函数包装到C#/ .NET中吗?

本文发布于:2023-11-15 16:38:27,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596163.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以自动   函数   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!