title: How do I safely pass objects, especially STL objects, to and from a DLL?
body: <p>How do I pass class objects, especially STL objects, to and from a C++ DLL?</p>
  
  <p>My application has to interact with third-party plugins in the form of DLL files, and I can't control what compiler these plugins are built with. I'm aware that there's no guaranteed ABI for STL objects, and I'm concerned about causing instability in my application.</p>