Page 3 of 3

Posted: Mon Oct 22, 2007 9:47 am
by tinman
Lazarus404 wrote:Tsk* I can't do it. The language I wish to consume the dll, although capable of handling pointers, can only do so by wrapping the pointer in a struct before handling it. This means I can't wrap it in PB, because PB doesn't like to handle the structs themselves but will the pointer. It's like the chicken and egg issue. :(
What language are you trying to get it into? There must be some mechanism to get it into there, because you either return values through registers (e.g. a single value or pointer to struct) or through memory (fill in the struct in memory). That's the underlying techniques no matter what syntax the language uses.

It might be more awkward if it's returned on the stack, but not impossible.