xptr_create function

Create an external pointer to a C++ function