SysAllocString() will not copy complete strings with null char's embedded I'm guessing because it thinks all strings are null terminated. It was somewhat easier in standard C because you could use memcopy to copy the entire string into a char* and then point to the address of the string to send...
Below is a snippet from the VCTerm example for VC++.
How can I get null characters into a variant and to transmit out the comm port using this control (example char* Test = "Te\0st\0Te\0st1";). I need to be able to do this for a special application interface to DDC controllers. It is...
I am writing a communications program that requires transmitting null characters through the comm port. MSComm.ocx wants a Variant for SetOutput. How can I copy or cast null characters into the Variant Data Type for transmitting? I have tryed many different methods without success including...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.