Embedding a java, C++ or .NET library

Embedding a java, C++ or .NET library

We need to embed an external library in Outsystems to be able to use its functionality through an API.
We can get the library and API in both C++, Java and .NET format.
What is the easiest approach to doing this? I have not been able to find a tutorial or explanation for how to do it. Can anyone give us any pointers?