in reply to Re: calling a function from a dll
in thread calling a function from a dll
$value =~ s!\0.*!!; # we assume that the first \0 returned indicates end of the string
That is a pretty bad assumption. BSTRs are fixed length arrays of unsigned shorts with a prefix length and can contain multiple nulls.
See http://blogs.msdn.com/b/ericlippert/archive/2003/09/12/52976.aspx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: calling a function from a dll
by nikosv (Deacon) on Jan 04, 2013 at 06:28 UTC |