i am writing a simple physics dll but my problem is returning all 6 floating point velocities to dbp
i have the results of the calculation stored in global variables in the dll and a seperate function to return each result to dbp, however they just return zero as if the contents was lost when the second function was called.
if i replace the variable with an actual value it returns that value and there is no reason my algorithm should return zero.
how do i retain the values in the dll or how do i get all the data back to dbp (eg how can i make it pass pointers to the dll instead of variable values)
any help appreciated and thanks in advance.
edit for typo
http://www.larinar.tk
AMD athlon 64 3000+, 512mb ddr400, abit kv8, 160gb hdd, gigabit lan, ati radeon 9800se 128mb.