--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
>
> I'll try to think of a clever way of allowing such a thing, probably
> by adding yet another modifier for "s".
>
> In the meantime: how about making the last item a byteblock?
...<snip>...
Oops, that wouldn't work: I assume that when you say byteblock,
you mean unsigned char*.
Rather than messing around with "string" type it's probably easiest to
change this definition of "byteblock" to mean scalar byteblock. That
will break all scripts currently using same, but someone has to suffer...
> I'd also though of array of chars and for/endfor to fill the
> individual chars.
Like this:
local iLenFaceName = length(sFaceName)
local arChars = dll.create_array(iLenFaceName+1, "char")
for (local i = 1; i le iLenFaceName; i++)
arChars[i] = select(sFaceName, 1, 1)
endfor
arChars[iLenFaceName+1] = 0x0
local tLogFont=dll.create_struct("i i i i i uc uc uc uc uc uc uc uc
array",;;+
nHeight,0,0,0,400,0,0,0,1,0,0,0,0,arChars)
getsize now returns the size you expect.
Tedious, but a workaround for now.
Be interested to see the script you're using it in.
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/