设置32英尺库 [英] Setting up 32feet library

查看:845
本文介绍了设置32英尺库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始使用这个库:32英尺

I'm trying to get started with this library: 32feet

我有一个Broadcomm公司的蓝牙协议栈和一直无法弄清楚如何得到这个库成立。当我运行我的code,我得到:

I have a Broadcomm Bluetooth Stack and haven't been able to figure out how to get this library set up. When I run my code, I get:

未处理的异常:System.PlatformNotSupportedException:不支持蓝牙协议栈发现

Unhandled Exception: System.PlatformNotSupportedException: No supported Bluetooth protocol stack found.

在其网站上周围挖后,我发现这一点:安装说明

After digging around on their site, I found this: Installation instructions

报告说,复制相应的DLL的到项目,然后运行 Test32FeetWidcommWin32.exe 。我试图把文件中的每一个文件夹在我的Visual Studio项目,然后运行EXE,但我仍然得到同样的错误。最初,我尝试过加入InTheHand.Net.Personal.dll文件作为参考,我的项目,但也不能工作。

It says to copy the appropriate DLL's into the project and then run the Test32FeetWidcommWin32.exe. I've tried putting the files in every single folder in my Visual Studio project and then running that EXE, but I still get the same error. Initially I tried just adding the InTheHand.Net.Personal.dll file as a reference to my project, but that didn't work either.

我能是做错了什么?

推荐答案

我只是解决了这一点。我认为这个问题是一个老引用我的项目,从当我试图暴力破解的解决方案的NETCF版本的DLL,所以我抹去我的项目清理,然后又开始加入了一切,它的工作!

I just solved this. I think the problem was an old reference in my project to the NETCF version of the DLL from when I was trying to brute-force a solution, so I wiped my project clean and then started adding everything again and it worked!

一个有用的工具,给那些试图找出他们的问题,这是复制并粘贴的app.config 文件到您的发布与您正在创建的应用程序目录,将名称更改为< YOUREXENAME> .exe.config 。当您运行的EXE文件,它应该创建一个更详细的跟踪文件。对于我的,我发现, coredll.dll中是罪魁祸首不加载,并掩盖了栈不支持例外。一个简单的谷歌搜索后,我发现这个问题是与NETCF。

A helpful tool to those trying to figure out their problem with this is to copy and paste the app.config file into your release directory with the app you are creating, and change the name to <YOUREXENAME>.exe.config. When you then run your EXE file, it should create a more detailed trace file. For mine, I found that coredll.dll was the culprit by not loading and was masked by the Stack not supported exception. After an easy Google search I found the problem to be with NETCF.

编辑:要清楚,当我清理了我的项目有点我重新添加引用的正确 InTheHand.Net.Personal.dll 文件,还添加了 32feetWidcomm.dll 文件到我的发行文件夹。

edit: To be clear, after I cleaned out my project a bit I re-added the reference to the correct InTheHand.Net.Personal.dll file and also added the 32feetWidcomm.dll file to my Release folder.

这篇关于设置32英尺库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆