1
Vote

Replace P/Invoke calls with some other BT connection method

description

Brian Peek's source code makes calls to hid.dll, setupapi.dll and kernel32.dll, among others, that are not available on the compact framework. The purpose of these calls is to retrieve a (preferably "safe") file handle to the paired wiimote device. Our first major obstacle is to replace these calls with native or managed compact-framework code, or use an SDK to provide an alternate way of retrieving a filehandle.
 
Solving this issue is integral to reaching 0.1 status.

comments

justinb wrote May 12, 2007 at 9:57 PM

OpenNETCF looks like a promising option for providing a bit of abstraction to the act of getting a handle on the wiimote.

However I believe there is also code in the Wiki for doing this with native wm5 calls (In other words, we would still be using P/Invoke, but would be invoking different libraries and possibly with a significantly different API)

justinb wrote May 13, 2007 at 6:50 PM

OpenNETCF is not a write-off but 32feet's InTheHand SDK is looking extremely easy to use and can be used free of charge.. OpenNETCF has a single nag window on connection to the device unless registered I believe.

wrote May 13, 2007 at 6:50 PM

justinb wrote May 15, 2007 at 9:57 PM

franson bluetools also looks very attractive, if only because it provides support for MS and Widcomm stacks.

wrote Feb 2, 2013 at 3:53 AM