3F / DllExport

.NET DllExport with .NET Core support (aka 3F/DllExport aka DllExport.bat)
MIT License
940 stars 131 forks source link

Error when using DllImport #110

Closed olluz closed 4 years ago

olluz commented 5 years ago

I have an exported method: [DllExport("Start", CallingConvention = CallingConvention.Cdecl)] public static bool Start(IntPtr hwndMain) { return true; }

The exe will find this without problems, but as soon as I add any DllImport I get this error message: "The procedure entry point Start could not be located in the dynamic link library."

Is that expected ?

3F commented 5 years ago

@olluz Can you illustrate something what are you trying to do? Unmanaged side is also important.

I think, for you case (due to #105) you need to use stackoverflow service instead.

Btw,

  1. Please try to use basic formatting for your code examples
3F commented 4 years ago

closed due inactivity