.NET Framework Developer Center > Windows Networking Development Forums > Windows XP Wireless SDK > How to enable MS SP2 Bluetooth Stack in WinXP without plugging a Bluetooth device ?
Ask a questionAsk a question
 

QuestionHow to enable MS SP2 Bluetooth Stack in WinXP without plugging a Bluetooth device ?

  • Tuesday, November 03, 2009 9:43 PMILY_81 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I've developed a simple program to download files through Bluetooth (BT) and Serial Port (SP).  It works fine on my computer because my BT device activated the BT stack.  However, if the bluetooth stack is not activated, the program will not be able to run because it checking if there's Bluetooth stack.  But I want to give a user a choice between BT and SP. If BT is not available, the SP could be used. 

    Does Anybody know if there's a way to enable Bluetooth stack in a VB Program ? 
    • Moved byeryangMSFTThursday, November 05, 2009 7:58 AMwrong forum (From:Common Language Runtime)
    •  

All Replies

  • Tuesday, November 10, 2009 4:04 AMWireless SDK Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Why do you need to enable stack if you can simple check is bluetooth presents or not. It is not so hard to do, you can do it with SetupAPI or by simple calling bt function and analize result. Or simple try this Wireless Communication Library (www.btframework.com). It does all you need
  • Tuesday, November 10, 2009 3:44 PMILY_81 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I found the reason for this issue.  I was using a constructor New() to create a Bluetooth Client directly in the form (main class) instead of in the load event.  It's why it gave me errors when I was using it on a computer without a bluetooth device.