> What is the solution to convert a Labview String (LStrHandle) to a C++
> string (char[]).
>
In extcode.h there is the definition
typedef struct {
int32 cnt; /* number of bytes that follow */
uChar str[1]; /* cnt bytes */
} LStr, *LStrPtr, **LStrHandle;
The string is a counted string since NULL termination doesn't work well
with binary strings. The char[] and uChar[] are compatible, and so you
can either copy cnt characters of the string to a C++ object from the
str field, or if you really know what you are doing, you can use the
pointer as a C++ string after adding a NULL to it. Its easiest to add
the NULL on the diagram before calling the CIN, but there are functions
to do it from the CIN.
Greg McKaskle