Problem mit SerialPortServiceClass_UUID

OP #1388069
Lesenswert?
• ▲
▼
Ich versuche, mit Visual Studio 2005 Pro eine Applikation für Windows 
Mobile 6 zu schreiben, die per Bluetooth eine SPP-Verbindung zu einer 
festen Bluetooth-MAC aufbaut.

Code-Auszug:
1
#include "stdafx.h"
2
#include "resource.h"
3
#include <winsock2.h>
4
#include <ws2bth.h>
5
#include <bthapi.h>
6
#include <bthutil.h>
7
#include <bt_api.h>
8
#include <bt_sdp.h>
9

10
[...]
11

12
    SOCKET s, s1;
13
    SOCKADDR_BTH address;
14

15
    s = socket( AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM );
16
    memset( &address, 0x00, sizeof(address) );
17
    address.addressFamily = AF_BTH;
18
    address.btAddr = (BT_ADDR)0x000123456789;
19
    address.serviceClassId = SerialPortServiceClass_UUID;
20
    address.port = 0;
21
    s1 = connect( s, (sockaddr*)&address, sizeof(address) );

Der Linker generiert folgende Fehlermeldung:
error LNK2001: nicht aufgelöstes externes Symbol 
"SerialPortServiceClass_UUID".

Wo könnte das Problem liegen?
Danke.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren