You can use windows function:
lstrcpyn, from kernel32.dll
It takes two string pointers, and gives a string pointer back. Here's the
trick;
Wire the first input with a string buffer, at least the length of the input
string.
Wire the second with the desired string.
The routine will copy the desired string into the buffer, and return (in the
return value) a pointer to the copy.
Make a VI out of this, and make the vi reentrant....
Now you can get pointers to strings, without home made external code.
Regards,
Wiebe.
"Aaron Marks" wrote in message
news:506500000005000000F3600000-1012609683000@exchange.ni.com...
> Unfortunately, when you use the Adapt to Type input on a Call Library
> Node, you are at the mercy of LabVIEW's data types. In this
case,
> LabVIEW will only pass a string and a LStrHandle (a handle to a pascal
> style string). Look at app note 154 for more on this. The
> workarounds would be to A)generate a string pointer in some other
> piece of external code and pass the pointer through LabVIEW as an
> int32, or create a DLL wrapper function to assemble the struct the way
> you need it before calling the actual function.