|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Which one is the Bluetooth DLL?Hi All,
I am going to use some Bluetotoh API, should I include some special DLL or just call it directly? Best regards, Boki. > Hi All, Hi,> > I am going to use some Bluetotoh API, should I include some special DLL > or just call it directly? > > Best regards, > Boki. 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_pam_van_doo***@hotmail.com Remove only "_nos_pam" Bruno van Dooren wrote:
Show quoteHide quote > > Hi All, Hi,> > > > I am going to use some Bluetotoh API, should I include some special DLL > > or just call it directly? > > > > Best regards, > > Boki. > > 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_pam_van_doo***@hotmail.com > Remove only "_nos_pam" 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.
Show quote
Hide quote
>> I don't know what you mean by 'call directly'. but Hi Boki,>> 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_pam_van_doo***@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. > 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. -- Kind regards, Bruno van Dooren bruno_nos_pam_van_doo***@hotmail.com Remove only "_nos_pam"
Show quote
Hide quote
> > Hi, 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_pam_van_doo***@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 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_pam_van_doo***@hotmail.com Remove only "_nos_pam" |
|||||||||||||||||||||||