Re: Transferring binary data to a function of a COM object

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Nick" <Nick@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6DF9CBD4-B35C-4BEF-A8DE-7748122C66FE@xxxxxxxxxxxxxxxx
> parameter. This function receives a truncated value of this parameter,
> i.e.
> this value is truncated at the embedded null charaters.
[...]
> What is wrong with my COM object?

Probably your design.
Even if you find another API that uses a string (BSTR) as a container for
binary data, it's not the best choice. You can pass binary data as
conformant arrays through your interfaces. It works with DCOM too.

/Helge


.



Relevant Pages

  • Re: struct unpack newline
    ... has a problem reading the file correctly. ... There is _no_ correct way of splitting a file containing binary data in ... Peter ... Prev by Date: ...
    (comp.lang.python)
  • Reading a file into a byte array?
    ... manipulate the data, and then write the data to the network or to ... But I don't know how to handle arbitrary binary data. ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: libxml2 and CDATA
    ... >>The binary data can be encoded so it contains only valid characters, for example in base64. ... Prev by Date: ...
    (comp.os.linux.development.apps)
  • ASCII Isometric Graphics...
    ... The array would hold only binary data, either 1/0 or true/false. ... Prev by Date: ...
    (comp.lang.ruby)