Thanks for all the help guys. I had problems calling my C++ dll functions from openldap. Using extern "C" for name mangling wasnt enough (used _stdcall with c_dllexport on the interface functions). I think I have solved the problem now, with good help from this list. Once again...thanks. -- Sincerely Mikael