LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use strings and dynamic array in DLL.

How to use strings and dynamic array in DLL.
I am using delphi to create this DLL.I have seen the examples in the Labview DLL(Hostname.vi).but that DLL
was created in C/C++.Same application i tried in Delphi.Here I passed the string parameter as pascal pointer to string.
But by doing so Labview is crashing.May be i am not using properly. In the example(Hostname.vi) they passed the handle to the string and they used DSSetHandlesize function to set the size of the string.How to use these things in pascal(passing string handle and using dssethandlesize function).i will be very greateful if any one can convert the same (Hostname.vi) C Dll to Delphi DLL.
0 Kudos
Message 1 of 2
(3,145 Views)
The following is a link regarding calling conventions and the LabView Call Library Function:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/58596f5d41ce8efb862562af0074e04c?OpenDocument

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 2
(3,145 Views)