Re: Necessary to make strange tweaks to my array data pointers when calling dlls

2004-04-24 Thread Nickster
Thanks David, Rolf, and Greg for all the input on this rather esoteric topic. I still have issues regarding this topic, but I don't know that I can formulate them into pointed questions. In any case, the dll calls work, and that's what matters in the end. What I DO know is that - thanks to you g

Re: Necessary to make strange tweaks to my array data pointers when calling dlls

2004-04-24 Thread rolfk
>You pointed out that depending on which calling >convention you use, either the function or the calling >code pops parameters off the stack. Which convention >does which, and does one method inherently involve > less overhead than the other? With cdecl the caller is responsible to adjust the sta

Re: Necessary to make strange tweaks to my array data pointers when calling dlls

2004-04-24 Thread Nickster
Thanks, David, You've answered my question. If you don't mind carrying on this discussion just a little further, though, you've brought up one more question... You pointed out that depending on which calling convention you use, either the function or the calling code pops parameters off the stac

Re: Necessary to make strange tweaks to my array data pointers when calling dlls

2004-04-24 Thread David Duffey
I'm not sure what you mean with "before being concatenated with the rest of the pointer". An x86 machine is little endian. So the CPU expects the bytes to be in reverse order. If a function in your dll expects an int32, it will want the bytes in reverse order. So, when LabVIEW makes calls to na

Necessary to make strange tweaks to my array data pointers when calling dlls

2004-04-24 Thread Nickster
In building pointers to be passed to certain dll calls, I have noticed that I need to pay attention to some peculiar details if I want the functions to execute properly. Namely, numeric types must have their bytes reversed from the way in which LabVIEW orders them (least-significant last) before b