Unmanaged Exports / Robert Giesecke

旧街凉风 提交于 2019-12-11 12:36:41

问题


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

Answer on stackoverflow from Robert Giesecke

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...".

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

Thanks in advance, Michael


回答1:


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.

Stephen



来源:https://stackoverflow.com/questions/2194708/unmanaged-exports-robert-giesecke

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!