<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 12, 2014 at 11:48 AM, Skip Montanaro <span dir="ltr"><<a href="mailto:skip@pobox.com" target="_blank">skip@pobox.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":14j" class="a3s" style="overflow:hidden">Just as the off-chance your DLL was written in C++... I don't think<br>


you can interface with ctypes directly. I think you would have to<br>
write a little shim DLL which exposes a C-compatible API.</div></blockquote></div><br>You should be able to use ctypes with a C++ library, you'd just need to know how your C++ compiler handles name mangling. Typically, changes are made to accommodate classes, namespaces, and function overloads. Of course, if you were to change to a different compiler (possibly including a different version) or made minor tweaks to the functions, you'd have to update all the Python code to use the new name mangling scheme.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Hmm...On second thought, maybe just only using functions exports with "extern C" would be easier - or just using a C compiler.<br><br clear="all"><div>

Chris</div>
</div></div>