A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Bluetooth programming



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 14th 09, 09:31 AM posted to microsoft.public.outlook.program_forms
Deepika
external usenet poster
 
Posts: 1
Default Bluetooth programming

Hi
I am trying to do bluetooth programming on Microsoft Visual C++ 6.0.
I am using basic functions like WSALookupServiceBegin().
i wrote the code like this
WSAQUERYSET wsaq;
wsaq.dwNameSpace = NS_BTH;

The problem is, the compiler is not recognising NS_BTH and giving compile
time error.
I included the following sets of headers and lib

#include winsock
#include winsock2
#include bthdef
#include BluetoothAPIs.h
#include Ws2bth.h
#pragma comment(lib, "ws2_32.lib")

The same goes with socket creation.
Even if i am trying to create socket using the below code

SOCKET client_socket = socket (AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM);

following error are coming up

error C2065: 'NS_BTH' : undeclared identifier
error C2065: 'AF_BT' : undeclared identifier
error C2065: 'BTHPROTO_RFCOMM' : undeclared identifier

i am not able to understand what else needs to be included.
Is it because of Microsoft stack or some SDK is required?
Ads
  #2  
Old April 14th 09, 02:22 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Bluetooth programming

Wrong forum. This group is for discussions of Outlook custom forms. Try
posting in a C++ group.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Deepika" wrote in message
...
Hi
I am trying to do bluetooth programming on Microsoft Visual C++ 6.0.
I am using basic functions like WSALookupServiceBegin().
i wrote the code like this
WSAQUERYSET wsaq;
wsaq.dwNameSpace = NS_BTH;

The problem is, the compiler is not recognising NS_BTH and giving compile
time error.
I included the following sets of headers and lib

#include winsock
#include winsock2
#include bthdef
#include BluetoothAPIs.h
#include Ws2bth.h
#pragma comment(lib, "ws2_32.lib")

The same goes with socket creation.
Even if i am trying to create socket using the below code

SOCKET client_socket = socket (AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM);

following error are coming up

error C2065: 'NS_BTH' : undeclared identifier
error C2065: 'AF_BT' : undeclared identifier
error C2065: 'BTHPROTO_RFCOMM' : undeclared identifier

i am not able to understand what else needs to be included.
Is it because of Microsoft stack or some SDK is required?



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bluetooth outlook Searover Outlook - Calandaring 3 March 24th 09 08:03 PM
Bluetooth Transfers Kefrin Outlook - Using Contacts 4 April 9th 08 02:32 PM
Bluetooth Sync always at GMT daloy Outlook - Calandaring 0 January 30th 07 10:02 PM
SMS wia bluetooth connection toothuser Outlook - Using Contacts 1 December 18th 06 03:20 AM
Choice of programming tool for Outlook programming [email protected] Outlook and VBA 4 July 13th 06 11:48 AM


All times are GMT +1. The time now is 08:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.