Bluetooth samples and which version of Visual Studio
-
Sunday, June 27, 2010 4:19 PM
Hi
Anyone got a good sample of using VB to get a list of Bluetooth devices? And to maybe send and receive a file.
Also, I'm using VS2005. Is there any better Bluetooth resources available if I upgrade to VS2010?
Thanks
All Replies
-
Sunday, June 27, 2010 4:29 PM
See if Microsoft Documentation helps you -
Read user contributions too.
http://msdn.microsoft.com/en-us/library/aa362932%28VS.85%29.aspx
Thanks
Quizwith.NET is now open for everyone !
Living on Earth may be expensive, but did you know that it includes a free trip around the sun? Isn't that worth it?- Marked As Answer by Guang-Ming Bian - MSFTModerator Thursday, July 01, 2010 3:38 AM
-
Sunday, June 27, 2010 4:34 PM
You will get better responses at device forum http://social.msdn.microsoft.com/Forums/en/vssmartdevicesvbcs/threads
kaymaf
CODE CONVERTER SITE
-
Sunday, June 27, 2010 5:30 PM
I know only of one library for bluetooth but I don't know how well it works http://32feet.codeplex.com/
Coding4fun Be a good forum member mark posts that contain the answers to your questions or those that are helpful
Please format the code in your posts with the
button . Makes it easier to read . Or use the Forum Code Formatter by JohnWein http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261- Marked As Answer by Guang-Ming Bian - MSFTModerator Thursday, July 01, 2010 3:38 AM
-
Monday, June 28, 2010 6:49 AMModerator
Hi SimeonD,
Microsoft provides WSALookupServiceBegin and WSALookupServiceNext native APIs to discover available bluetooth devices. If we are using c++ native language, we can invoke it directly, here is a sample:
http://msdn.microsoft.com/en-us/library/ms881713.aspx
http://msdn.microsoft.com/en-us/library/aa362914(VS.85).aspxAlthough it is on CE, the concept is same.
If we are using managed code, we can P/Invoke the APIs to implement the same function. Here is a sample:
http://www.codeproject.com/KB/windows/BluetoothDevicesDiscovery.aspx?msg=3456441Some 3rd parties has wrapped the P/Invoke, like 32feet, as bdbodge's suggestion, we can use it directly too.
Best regards,
Guang-Ming Bian - MSFT
MSDN Subscriber Support in Forum
If you have any feedback of our support, please contact msdnmg@microsoft.com.
Please remember to mark the replies as answers if they help and unmark them if they provide no help- Marked As Answer by Guang-Ming Bian - MSFTModerator Thursday, July 01, 2010 3:38 AM
-
Monday, June 28, 2010 7:54 PM
Hi
Is 32Feet the only vb.net option? Everything else seems to be C# or C++.
Also, still looking for a Visual Basic example.
Thanks
-
Tuesday, June 29, 2010 2:29 AMModerator
Hi,
I am not familiar with 32feet component, since it is for managed code, it should work for VB.net. Please try it. In fact, c# code can convert to vb.net code via tool, not manually. Here is a website which can do translation work.
http://www.developerfusion.com/tools/convert/csharp-to-vb/
Best regards,
Guang-Ming Bian - MSFT
MSDN Subscriber Support in Forum
If you have any feedback of our support, please contact msdnmg@microsoft.com.
Please remember to mark the replies as answers if they help and unmark them if they provide no help

