none
Error about Bluetooth Low Energy! RRS feed

  • Question

  • I use VS2013 on Win 8.1

    I have a solution with some projects. One of them is a project contain code connect Bluetooth Low Energy. I build it success. Another project what reference to above project. But when I build, show error "error C2061: syntax error: identifier 'BLUETOOTH_ADDRESS ' ". I find out why have this error. In "BluetoothApis.h" , condition "#if (NTDDI_VERSION >= NTDDI_WINXPSP2)" don't happen. Detail :

    #if (NTDDI_VERSION >= NTDDI_WINXPSP2)
        
    // ***************************************************************************
    //
    //  Bluetooth Address
    //
    // ***************************************************************************
    
    typedef ULONGLONG BTH_ADDR;
    
    typedef struct _BLUETOOTH_ADDRESS {
        union {
            BTH_ADDR ullLong;       //  easier to compare again BLUETOOTH_NULL_ADDRESS
            BYTE    rgBytes[ 6 ];   //  easier to format when broken out
        };
    
    } BLUETOOTH_ADDRESS_STRUCT;
    
    #define BLUETOOTH_ADDRESS BLUETOOTH_ADDRESS_STRUCT

    I don't know fix this error. Who can help me!

    Friday, April 24, 2015 3:26 AM

All replies

  • by default you get the latest ntddi_version value from sdksdkver.h. Is the project that is failing new or imported from a previous SDK or wdk?

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Friday, April 24, 2015 7:18 AM