No functions in C# DLL with RGiesecke.DllExport

前端 未结 3 1460
既然无缘
既然无缘 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:34

    I found the problem. It has it in the RGiesecke Documentation, but I missed it. In the project settings->Build->Platform target: you can not have it set to "Any CPU". You must have it set to x64 or x86 depending on if you want to use it in a a 64 or 32 bit application.

提交回复
热议问题