0 Replies Latest reply on Mar 14, 2007 4:32 AM by tippyland

    C++ CFX - return string type with a lot of '\0'

    tippyland
      Hello

      Header of the function for setting data in query is:
      void CCFXQuery::SetData(int iRow, int iColumn, LPCSTR lpszData).

      How to set field of query, or some other return value with the "string" type which may conatain string with a lot of '\0' signs? SetData function somehow has to know (LPCSTR argument type which is pointer), where string is ending, so that's why it's getting only string '\0' terminated. If I pass value, function gets only that part to the first appearance of that sign. How to return to the user all data, or in which function it can be self defined (length of returned value)?

      Thanks