No functions in C# DLL with RGiesecke.DllExport

前端 未结 3 1463
既然无缘
既然无缘 2021-01-04 23:05

I am trying to make a DLL in C# for use in a couple other languages. I found RGiesecke\'s DllExport but it doesn\'t seem to work. It builds just fine and makes a dll, but

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 23:33

    I had a similar problem, but had already set the platform target to x64 and had the following error:

    The name 'CallingConvention' does not exist in the current context

    I found adding the using directive System.Runtime.InteropServices resolve the problem.

提交回复
热议问题