06-13-2008 04:50 AM
06-13-2008 05:24 AM - edited 06-13-2008 05:28 AM
C string pointer is a pointer to a memory location whose string information is terminated by a 0 byte. Pascal String Pointer is a pointer to a memory location where the first byte specifies the number of bytes to follow. This obviously allows only for strings up to 255 character length.
@Daniel Coelho wrote:Hi all.I'm building a DLL on LabVIEW and I choose a string as an output on the terminals connectors.But LabVIEW creates another output, the lenght of the return string.This is a problem because I have other DLLs and I need them to be compatible.How do I remove this length from the header? What is the difference between Pascal String and C string and String Handle Pointer?String Handle Pointer removes the length from the header but I don't know the difference between this data types.Thanks in advance for the help.Daniel CoelhoPortugal
06-13-2008 05:34 AM
Thank you for the very good the explanation.
I wasn't aware of those types of error. I'll change my other DLLs in order to return an extra argument, the string buffer length.
Thank you for your quick reply.
My best regards,
Daniel Coelho
Portugal
06-13-2008 05:55 AM
@Daniel Coelho wrote:
Thank you for the very good the explanation.
I wasn't aware of those types of error. I'll change my other DLLs in order to return an extra argument, the string buffer length.
Thank you for your quick reply.
My best regards,