C#导出函数dll [英] C# Export function dll

查看:43
本文介绍了C#导出函数dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Robert Giesecke 的 Unmanaged-Exports 包,可以在 (

将DllExporter.exe"放在您的项目文件夹中.

德国文章:http://www.sotzny.de/2011/11/10/dllexport-net-ohne-ccli/

I use the Unmanaged-Exports package from Robert Giesecke, which can be found at (https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports).

I'd like to export a function but somehow it doesn't work. The functions won't be exported.

My approach:

Code:

[DllExport("test", CallingConvention = CallingConvention.StdCall)]
    public static string test()
    {
        return "Hello World, this is the DLL";
    } 

Screenshot of my IDA results:

As you can see they're empty because no function was exported.

解决方案

Solution: http://www.codeproject.com/Articles/37675/Simple-Method-of-DLL-Export-without-C-CLI

Put the "DllExporter.exe" in your project folder.

German article: http://www.sotzny.de/2011/11/10/dllexport-net-ohne-ccli/

这篇关于C#导出函数dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆