I'm using 8.2. Sorry, forgot that you were running 6i. The example should still be available in 6i. Check the "Program Files\National Instruments\LabVIEW 6i\examples\dll\data passing" directory, or thereabouts. You can also check the Knowledgebase for "calling external code from LabVIEW". There used to be a separate document available called "Using External Code in LabVIEW" that was later integrated into the LabVIEW help. In 6i it was still separate. The 7.0 version is
here. The basic premise still holds, though.