Wireless Communication Library Support Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
GetClassOfDevice
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: GetClassOfDevice (Read 16020 times)
Livio
Guest
GetClassOfDevice
«
on:
August 19, 2009, 04:51:53 PM »
Hello,
any idea how to GetClassOfDevice from VB6?
I need a simple string with the COD in my For cicle OnDevicesFound:
For i = 0 To Devices.Count - 1
Thanks
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 3675
Karma: 1000
Re: GetClassOfDevice
«
Reply #1 on:
August 19, 2009, 05:12:33 PM »
Hi,
Idea is located in the BluetoothDiscoveryDemo application's code:
Dim COD As Long
Res = Device.GetClassOfDevice(Radio, COD)
If Res = WCL_E_SUCCESS Then
lvDevices.SelectedItem.SubItems(1) = Str(COD)
Else
lvDevices.SelectedItem.SubItems(1) = "Error: " + Str(Res)
End If
That was the first part of idea. The other one (if you want a string representation like "Smarphone", "Cellurar" and others) can be found with using forum search engine and is located here:
http://forum.btframework.com/index.php?topic=707.msg3436#msg3436
Logged
Bluetooth Framework
IrDA Framework
Serial Framework
WiFi Framework
Print
Pages: [
1
]
Go Up
« previous
next »
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
GetClassOfDevice
Sitemap
1
2
3
4
5
6
7