John wrote:
> I am trying to interface to a DLL written in C with labview and
> stumbled on a routine with the following prototype:
>
> int getVersion (char **version);
>
> The routine allocates a string buffer locally and returns a pointer to
> the string buffer in the argument passed to the function. The
> application calling this routine does NOT have to allocate the string
> buffer, as it is done in the library.
>
> My goal is to call this function in labview and display the result as
> a string. Is this possible in Labview?
>
> As a note, here is how the function is used in a C program:
>
> char *version;
> rv = getVersion (&version);
> if (rv != SUCCESS) {
> goto exit;
> }
> printf ("Version: %s\n", version);
Checkout my answer to the thread "W
in32 call--Possible to use a pointer
to a pointer?". This is the same issue.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390