Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何让实验室流媒体层在C#中工作?_C#_Shared Libraries_Streaming_Data Science_Badimageformatexception - Fatal编程技术网

如何让实验室流媒体层在C#中工作?

如何让实验室流媒体层在C#中工作?,c#,shared-libraries,streaming,data-science,badimageformatexception,C#,Shared Libraries,Streaming,Data Science,Badimageformatexception,我有一个设备,可以记录像脑电图测量这样的实时数据。我想用实验室流媒体层(lsl)发送这些数据。不幸的是,我无法配置lsl并使其运行。我不确定我是否将dll复制到了正确的位置 到目前为止我所做的: 已从下载最近的lsl dll 已将liblsl64.lib和liblsl64.dll复制到我的项目文件夹和我的项目的调试文件夹中 将LSL.cs(如中所述)复制到我的项目中:重命名为const string libname=“LSL”;to const string libname=“liblsl

我有一个设备,可以记录像脑电图测量这样的实时数据。我想用实验室流媒体层(lsl)发送这些数据。不幸的是,我无法配置lsl并使其运行。我不确定我是否将dll复制到了正确的位置

到目前为止我所做的:

  • 已从下载最近的lsl dll

  • 已将liblsl64.lib和liblsl64.dll复制到我的项目文件夹和我的项目的调试文件夹中

  • 将LSL.cs(如中所述)复制到我的项目中:重命名为const string libname=“LSL”;to const string libname=“liblsl64”

  • 当我运行代码时:

    liblsl.StreamInfo info=新liblsl.StreamInfo(“TestCSharp”、“EEG”)

我得到一个System.BadImageFormatException:HRESULT:0x8007000B


有人能帮我吗?

我得到System.BadImageFormatException,因为我的配置管理器中有“Any CPU”而不是“x64”。当使用.Net核心应用程序访问库时,它也可以工作