Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Which one is the Bluetooth DLL?

3 views
Skip to first unread message

Boki

unread,
May 6, 2006, 1:13:50 PM5/6/06
to
Hi All,

I am going to use some Bluetotoh API, should I include some special DLL
or just call it directly?

Best regards,
Boki.

Bruno van Dooren

unread,
May 7, 2006, 2:27:29 AM5/7/06
to

Hi,
I don't know what you mean by 'call directly'. but
if you are using the microsoft bluetooth api, then this could help you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bluetooth/bluetooth/windows_sockets_support_for_bluetooth.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ppc_bluetooth_api__amdi.asp

if you are using a 3d part API, then consult the API manual on how to
configure your poject.
it is also possible to configure a bluetooth device as a serial port or
tcpip port

There are also a couple of examples on www.codeproject.com

--

Kind regards,
Bruno van Dooren
bruno_nos_pa...@hotmail.com
Remove only "_nos_pam"


Boki

unread,
May 7, 2006, 12:52:17 PM5/7/06
to

Hi,

To explain my question:

For example, I want to use CallWindowProc, I have to use "use32.dll",
if I want to call Bluetooth APIs, which DLL should I use ?

Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" _
(ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, _
ByVal Msg As Long, ByVal wParam As Long, _
ByVal lParam As Long) As Long


Best regards,
Boki.

Bruno van Dooren

unread,
May 7, 2006, 2:10:53 PM5/7/06
to
>> I don't know what you mean by 'call directly'. but
>> if you are using the microsoft bluetooth api, then this could help you:
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bluetooth/bluetooth/windows_sockets_support_for_bluetooth.asp
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ppc_bluetooth_api__amdi.asp
>>
>> if you are using a 3d part API, then consult the API manual on how to
>> configure your poject.
>> it is also possible to configure a bluetooth device as a serial port or
>> tcpip port
>>
>> There are also a couple of examples on www.codeproject.com
>>
>> --
>>
>> Kind regards,
>> Bruno van Dooren
>> bruno_nos_pa...@hotmail.com
>> Remove only "_nos_pam"
>
> Hi,
>
> To explain my question:
>
> For example, I want to use CallWindowProc, I have to use "use32.dll",
> if I want to call Bluetooth APIs, which DLL should I use ?
>
> Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" _
> (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, _
> ByVal Msg As Long, ByVal wParam As Long, _
> ByVal lParam As Long) As Long
>
>
> Best regards,
> Boki.
>

Hi Boki,

If you look up the individual functions that you want to use (for example
the accept function) you will also get information as to which header to
include, lib to link to and dll will be used.
for example, this page links to the accept function:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bluetooth/bluetooth/bluetooth_and_wsasetservice.asp
which has a description of the function, together with the information that
you need.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/accept_2.asp

You also might want to search on codeproject for some examples that might
save you some time.

Bruno van Dooren

unread,
May 8, 2006, 10:17:01 AM5/8/06
to
> > Hi,
> > I don't know what you mean by 'call directly'. but
> > if you are using the microsoft bluetooth api, then this could help you:
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bluetooth/bluetooth/windows_sockets_support_for_bluetooth.asp
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/APISP/html/sp_ppc_bluetooth_api__amdi.asp
> >
> > if you are using a 3d part API, then consult the API manual on how to
> > configure your poject.
> > it is also possible to configure a bluetooth device as a serial port or
> > tcpip port
> >
> > There are also a couple of examples on www.codeproject.com
> >
> > --
> >
> > Kind regards,
> > Bruno van Dooren
> > bruno_nos_pa...@hotmail.com
> > Remove only "_nos_pam"
>
> Hi,
>
> To explain my question:
>
> For example, I want to use CallWindowProc, I have to use "use32.dll",
> if I want to call Bluetooth APIs, which DLL should I use ?
>
> Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" _
> (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, _
> ByVal Msg As Long, ByVal wParam As Long, _
> ByVal lParam As Long) As Long


Hi,
you can also get bluetooth devices to act as serial ports in windows.
That way you can easily communicate with them using the serial port .NET
class.
That might be mugh easier than having to muck about with socket functions.

These articles might help you with that.
http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=bluetooth+serial+port

http://www.devx.com/dotnet/Article/31001
http://msdn2.microsoft.com/en-us/library/ms228841.aspx
http://sharewareconnection.com/bluetooth-net.htm

--

Kind regards,
Bruno.
bruno_nos_pa...@hotmail.com
Remove only "_nos_pam"

0 new messages