title: Bonjour/DNS-SD on Windows
body: <p>I'm currently working on a cross-platform application (Win/OSX/iOS) which has a C++ (with Boost) back end.  On iOS and OSX I'm using the Cocoa Net Service Browser Delegate functions to discover an embedded device via mDNS, then pass the information to the back end to create the objects it needs to communicate with it.</p>
  
  <p>I wanted to take a similar approach with my Windows MFC front end and I found <a href="http://marknelson.us/2011/10/25/dns-service-discovery-on-windows/" rel="noreferrer">this</a> article which seemed to do exactly what I want.  However, it seems that using the Bonjour SDK has some really nasty side effects - forcing you to static link to MFC and in my case the only way I can get it to link properly is to not use debug DLLs at all, which is not ideal.</p>
  
  <p>So, the Bonjour SDK isn't really any good for me because it imposes too many restrictions on my project.  With Cocoa I'm actually using very little of the functionality - just didFindService and netServiceDidResolveAddress really.  All I want to do is find the devices of a given type and get their IP addresses.</p>
  
  <p>Can anyone suggest another way around this that will work with an MFC front end on Windows?</p>