开发者

Unmanaged Exports / Robert Giesecke

开发者 https://www.devze.com 2022-12-18 20:05 出处:网络
In the followinganswer Robert Giesecke describes a way to export managed code to native applications without the need of COM registration:

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 d开发者_JS百科elphi 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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消