托管输出/罗伯特·捷 [英] Unmanaged Exports / Robert Giesecke

查看:181
本文介绍了托管输出/罗伯特·捷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下的答案罗伯特·捷介绍了一种方法导出管理code到本机应用程序,而COM注册的必要性:

In the following answer Robert Giesecke describes a way to export managed code to native applications without the need of COM registration:

<一个href="http://stackoverflow.com/questions/787303/how-to-use-net-assembly-from-win32-without-registration">Answer从罗伯特·捷计算器

我下载了UnmanagedExportLibrary.zip从和构建使用Visual C#2008例preSS版的.NET的一部分,德尔福2010年描述他的页面的win32部分样品。当我开始在Delphi应用程序,它调用的DLL,我得到一个异常无法启动应用程序......。

I downloaded the UnmanagedExportLibrary.zip from and built the samples using Visual C# 2008 Express Edition for the .net part and delphi 2010 for the win32 part as described on his page. When i start the delphi application which calls the dll, i get an exception "unable to start application...".

时有人能够发布两个工作项目(.NET / win32)中使用RGiesecke.DllExport.dll互相沟通?

Is someone able to post two working projects (.net / win32) using the "RGiesecke.DllExport.dll" to communicate with each other?

在此先感谢,迈克尔·

推荐答案

我得到这个工作的一个C ++客户端调用从C#DLL函数。有一件事我也注意到了该dll的一个是从原始的项目,但缺少的的包含在项目模板。另外,MSBuild的调用并没有包含空格的路径中(或从太深的路径)的工作。移动到了一个路径,没有空间和一切都很好。

I got this working for a C++ client calling a function from a C# DLL. One thing I did notice was that one of the DLLs was missing from the raw project but was included in the project template. Also the MSBuild call didn't work from a path containing spaces (or from a path that was too deep). Moved it to a path with no spaces and everything was fine.

斯蒂芬

这篇关于托管输出/罗伯特·捷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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