title: BLE scan and communication in c++
body: <p>I am currently trying to implement a BLE scanning function for a Windows 10 application.</p>
  <p>It's an old software based on a c++ / MFC solution.</p>
  <p>This software is now using a bluegiga dongle (viewed as a COM port).
  All bluetooth accesses are done using a dll that is loaded at the start-up.
  I want to avoid the dongle and switch to the windows drivers.</p>
  <p>I explored these paths :</p>
  <ul>
  <li>the Bluetoothleapis.h library : I can't make it work on my computer... And all the examples I found on the internet are not working.</li>
  <li>I used Qt because some are saying that this is the current way to go. The example is really easy to use and is working as expected. But merging Qt in my project would be a nightmare (+ some legal issues). =&gt; it can't be used as is.</li>
  <li>I tried WinRT libraries in a UWP application (based on the microsoft examples found on github here : <a href="https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/BluetoothLE" rel="nofollow noreferrer">https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/BluetoothLE</a>
  Once again, the example is working as expected, and is easy to understand. But, I really don't know how to integrate this into my soft. I tried to create a simple UWP dll: it compiles and everything seems fine, but when it is loaded at the start-up, it crashes... &quot;error while loading the dll&quot;</li>
  </ul>
  <p>So, here are my questions :</p>
  <ul>
  <li>Based my current situation, is there a clear solution ?</li>
  <li>Did I forgot any other possibility ?</li>
  <li>If the WinRT/UWP path is correct, is it possible to use a dll and include it into my ancient project ?</li>
  <li>Or, do I need to restructure the whole project ? (It can be done, but is tidious because of the inspection process... )</li>
  </ul>
  <p>I am in no way an expert in these fields, so any help would be really appreciated !</p>
  <p>From a lost dev,
  Thank you.</p>