I've run across what may be the best shipping example in LabVIEW, that is if your .dll’ly challenged like me.
It’s an example called "Call DLL.vi". You can find through the Example Finder or directly at "...National Instruments\LabVIEW 7.1\examples\dll\data passing\Call Native Code.llb\Call DLL.vi".
This VI lists all the C and C++ data types and their LabVIEW equivalents. Each data type has
an example VI that demonstrates the use of the Call Library Function Node for that data type. It also shows the C source code for that function in the dll and some note/cautions to be aware of when using that data type.
It first shipped with 7.0 and is also in 7.1.
Kudos to the NI person that wrote this fine example. If you’re at NIWeek this year, look me up some evening in the exhibition hall and I’ll "buy" you beer.
Ed