I call exported functions in a dll and i dont know if i do it correctly. I always pass (void *) between the host and the library function. In the host application i allocate