Wireless Communication Library Support Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Wireless Communication Library 6.10.0.0 has been released. More details on
www.btframework.com
Home
Help
Search
Calendar
Login
Register
Wireless Communication Library Support Forum
»
Wireless Communication Library
»
Wireless Communication Library COM Edition
»
GetClassOfDevice
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: GetClassOfDevice (Read 1009 times)
Livio
Newbie
Posts: 5
Karma: 0
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: 2467
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
WCL
- Wireless Communication Library
TextBlue
- Bluetooth Proximity Marketing Software
WCL Phone Explorer
- Free Phone Content Manager
Print
Pages: [
1
]
Go Up
« previous
next »
Wireless Communication Library Support Forum
»
Wireless Communication Library
»
Wireless Communication Library COM Edition
»
GetClassOfDevice