I need to keep the pointer of an object, returned from my DLL function, and use it in others DLL function.
First solution that i know is to include with the DLL the header with my class declaration; but I don't like that.
Second solution that i found is to return the pointer like a integer value, named "handle", and use it like a pointer when need again. I am thinking something like when using "new", but the pointer it's get from my integer var. Example: