Tobe;
Along with Ray's answer, check also the following example at NI Developer Zone:
Passing a Variety of Data Types from DLL to LabVIEWYou accomplish returning a string to LabVIEW in three steps:
1. First you resize the LV string to accomodate your C++ string using the function NumericArrayResize(). For example:
NumericArrayResize(uB, 1L,(UHandle *)&LV_string, c_string_size);
2. Then, update the length of the LV string. For example:
LStrLen(*LV_string) = c_string_size;
3. Finally, move the bytes from your C++ string to the LV string using the function MoveBlock(). For example:
MoveBlock(c_s
tring, LStrBuf(*LV_string), c_string_size);
Regards;
Enrique
www.vartortech.com