Working on an FTP client in LV6 I ran in the exact same issue as Peter Pan. I came across this answer while looking for an answer to my problem.
I agree that there must be a data mismatch, but I do not agree to all what Aaron is saying.
1/ First of all, the function is expecting a pointer to the struct, what I think we're giving it. How can you else explain that functions like GetCursorPos work correctly? They also expect a pointer to the struct and what you're giving it is a "handle by value"!
2/ If the strings are passed as a "handle to Labview strings" instead of C String Pointers then we're dealing not only with a shortcoming, but also something confusing: if you send in a normal string, outside of a cluster, it defaults to C Pointer String. Ok, I gues
s because the list is alphabetically sorted?!
3/ Indeed, one has to init a "buffer string" to accept the char data. I did this, with no luck.
4/ What about the 3 embedded clusters? I could imagine LV has problems with that too...
Well, up to now I did not find a "LV only" solution. And since I don't know C or C++ I'm not able to write a wrapper. I'm trying to keep the number of external DLL's down anyway. 🐵
I'm open for a discussion, so let me know.
And to the NI gurus: the Win API is far too important to "neglect" its implementation. With plain old VB it's a snap, using very, very simple types ('clusters'), so I hope this functionally will be spoken about in new LV updates.
Thanks for your time.
Keep on smiling !
David.