Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by yorklex

  1. yorklex

    VC++, MSComm.ocx & Null char's

    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...
  2. yorklex

    VC++, MSComm.ocx & Null char's

    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...
  3. yorklex

    VARIANT Data Strings & Null Char's

    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...

Part and Inventory Search

Back
Top