02-08-2005 08:07 AM
02-08-2005 11:33 AM
02-08-2005 11:38 AM
Additionally, I'm assuming I need to set the parameter type for my cluster (Assuming I can find the right data type) to "Adapt to type", and then send a pointer to a handle.....
02-08-2005 02:05 PM
02-08-2005 02:41 PM
02-09-2005 01:16 AM
02-09-2005 01:24 AM
most of the parameters being passed are WORD, which, unless I'm ageing at a rate I'd rather not admit, is a 16-bit integer?
I also read that some C++ compilers "pad" clusters (Sorry, Structs) to a defined padding width, but I'm not sure if this only applies to mixed-data structs).
02-09-2005 04:46 AM
02-09-2005 05:59 AM
I automatically assumed that the padding would be interpreted as the LARGER of the two numbers, either the native data size or the padding length, but your answer suggests the opposite. This means that a cluster whose total size is less than 8 bytes (or equal to 8 bytes) will not have any padding issues?
"My" cluster is 4 WORD (even though the DLL documentation describes them as int, I'm assuming they're actually WORD) in size, which is exactly the 8 bytes. So basically, I shouldn't have to worry about padding, correct?
This would help me a bit because I've read in some places that passing clusters can sometimes be impossible with LV without writing a CIN wrapper, where I have even less experience than with DLLs (i.e. none).
Here's how I'm trying to do it..... The code won't run, but the DLL configuration is visible.
Thanks
Shane.
02-09-2005 07:38 AM