T
tbh
for historical reasons i need to be able to call, from C# under DotNet 2, as
COM+ DLL function that returns a "string" which is really an array of
seemingly arbitrary bytes (presumably non-zero). however, C# treats this as
a string and the only ways i have found to convert it to a byte array lose
data (apparently in those cases when the "characters" are not legal UTF
values).
in this case (a program i only need to run once) i would be willing to
tolerate an unsafe solution, but i haven't been able to find one, despite
fairly extensive searching.
is this not possible or have i just not found the right trick yet?
Tim Hanson
COM+ DLL function that returns a "string" which is really an array of
seemingly arbitrary bytes (presumably non-zero). however, C# treats this as
a string and the only ways i have found to convert it to a byte array lose
data (apparently in those cases when the "characters" are not legal UTF
values).
in this case (a program i only need to run once) i would be willing to
tolerate an unsafe solution, but i haven't been able to find one, despite
fairly extensive searching.
is this not possible or have i just not found the right trick yet?
Tim Hanson