title: How to use C++ classes with ctypes?
body: <p>I'm just getting started with ctypes and would like to use a C++ class that I have exported in a dll file from within python using ctypes.
  So lets say my C++ code looks something like this:</p>
  
  <pre class="lang-c++ prettyprint-override"><code>class MyClass {
    public:
      int test();
  ...
  </code></pre>
  
  <p>I would know create a .dll file that contains this class and then load the .dll file in python using ctypes.
  Now how would I create an Object of type MyClass and call its test function? Is that even possible with ctypes? Alternatively I would consider using SWIG or Boost.Python but ctypes seems like the easiest option for small projects.</p>