That code looks sketchy...
verty is an array of floats, and you compare it's
address to
testy (which is also a float, while the address would be a DWORD or a QWORD).
I'm going to assume that's a typo and you meant to compare
verty[j] to
testy, however it happens in several places.
Can you elaborate on that, is that really supposed to be part of the algorithm...?
As for converting it to DBPro, it should be relatively straight forward; the not operator (!= in C++) is
<> in DBPro, "&&" is
AND and not (!) is
not, however I'm not quite sure if it works the same as the C version of that operator; I would hazard a guess you'll be safer just replacing it with "= 0".
As for passing arrays to functions you can either use IanM's array pointers and pass those, use two global arrays or allocate a dynamic memory buffer (
make memory or
alloc; the latter is from M1U again and has quite better features than the first). The last approach with a pointer to memory makes it easy to write recursive functions where you can offset the pointer and call the function with that new pointer as an argument.
"Why do programmers get Halloween and Christmas mixed up?" Because Oct(31) = Dec(25)