06-19-2009 01:42 AM
Hi,
Is there any way to export typedef struct from a C DLL to LabVIEW (so that it is refered to under 'type' when using the Call Library function?
Also, is there a way to export typedef struct?
Thanks.
06-19-2009 05:26 AM - edited 06-19-2009 05:27 AM
Probably not.
Not sure if it's an issue anymore, but at one time the number one issue was the endian-ness.
On top of that is fundamentally different handling of arrays: C arrays are just pointers, while LabVIEW arrays are smarter, containing the size of the dimension(s) within them.
Strings are likewise.
The configuration panel in CAL LIBRARY can handle some of these issues, but it has to be broken down into fundamental parts.
No way I know of to match an arbitrary structure in both languages.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-19-2009 09:48 AM