Re: C# question: dealing with unsigned char* from C++ .lib

Tech-Archive recommends: Speed Up your PC by fixing your registry



Stephen,

I've tried various data types to try and deal with the "unsigned char
*image," but I haven't found a solution.
Can someone suggest the best way to deal with this? Should I be converting
the unsigned char* to a different type within the C++ wrapper function? If
so, some sample code would be helpful.

Is image an input or output parameter? Does it represent text or
binary data?


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.



Relevant Pages

  • Re: passing array to isdigit()
    ... > Peter Nilsson suggests processing a string by converting its ... Ordinary character strings should really be stored as unsigned char, ... yield the original character coding. ...
    (comp.lang.c)
  • Re: Total order on floating point numbers
    ... is to copy the data structure to and from an array of unsigned char, ... converting as necessary. ... If your internal form has anything other ...
    (comp.arch.arithmetic)
  • [patch 06/54] PNP: add pnp_eisa_id_to_string()
    ... Converting the EISA ID to a string is messy and error-prone, ... * Parse EISA id. ... unsigned char type, tmp; ... struct pnp_option *option; ...
    (Linux-Kernel)
  • [patch 06/55] PNP: add pnp_eisa_id_to_string()
    ... Converting the EISA ID to a string is messy and error-prone, ... * Parse EISA id. ... unsigned char type, tmp; ... struct pnp_option *option; ...
    (Linux-Kernel)
  • [patch 05/53] PNP: add pnp_eisa_id_to_string()
    ... Converting the EISA ID to a string is messy and error-prone, ... * Parse EISA id. ... unsigned char type, tmp; ... struct pnp_option *option; ...
    (Linux-Kernel)