title: Compiling C++ code in a browser extension
body: <p>I am working on a browser extension in Firefox to intercept HTTP requests and alter them. Due to the purpose of my project, I would need to incorporate a project that's built in C++ in order to process that information. Rewriting the C++ project would take too much work (it's a big project). I read that I could make the C++ code into a .dll file and use that, but I am unsure on how to do this (kind of new to programming extensions. Did do a lot of web dev tho).</p>
  
  <p>I have been doing a lot of research, and NPAPI seems to be the way to go (I know it's being phased out, but the project is just a proof of concept that I need working). However, I'm not sure whether frameworks like FireBreath can do extensions. It also needs to be in Firefox, since my company doesn't use anything else.</p>
  
  <p>Is there a good method of accessing the C++ code in an extension? I'd love some links to tutorials if there are any. I did read <a href="https://stackoverflow.com/questions/3731872/cross-browser-extension-development-in-c">this previous thread</a>, but it didn't give a solid conclusion on what to use. Also, if there's a better/easier way to do this (plugins, etc), I'd love to know!</p>
  
  <p>Sorry if this is in the wrong forum. Still new here :S</p>