--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
> I cannot overload, but will look at a ppsv->SetBuf. You should be
> able to emulate with
>
> pvar = ppsv->GetVarAddr(szVarName)
> if (pvar && _msize(pvar)>=iCount)
> memcpy(pvar, val, iCount)
>
> What is missing here is automatic increase in size of pvar to
> accomodate icount bytes, if needed. I will look at maybe doing the
> setbuf to accomodate this.
But I realised after posting you that I could workaround like this
sDummy = repeat(" ", iCount+1)
ppsv->SetVar(szVarName, sDummy);
pvar = ppsv->GetVarAddr(szVarName)
if (pvar)
memcpy(pvar, val, iCount)
Which is what I'll do for now. Would setbug by necessary or better?
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/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/