[AGENT++] how to allocate vb binds in dynamic

Frank Fock fock at agentpp.com
Wed Jan 26 09:23:09 CET 2005


Hi Jerry,

You do not give a complete example, so it is hard to help.
Have you read Bjarne Stroustrup's book "The C++ Programming Language"
yet?

To following, for example, should work:

Vbx vbs[10];
vbs[0].set_oid("1.3.6.1");
vbs[1].set_oid("1.3.6.2");

Best regards,
Frank

Jerry OELoo wrote:

> hi mrawd2
> thanks for your help!
>
> i have tried as you said
> pVbs[2]->set_oid(getOid);
> pVbs[oidNum]->set_oid(getOid);
> both two methods can not pass compiling The compiler shows : error
> C2819: type 'Vbx' does not have an overloaded member 'operator ->'
>
> if i use Vbx Vbs[6];then Vbx[i]->set_oid(getOid); it is right !
> can it not use pointer here? why?
> anybody can give me some suggestion?
> thanks Jerry
>
> _________________________________________________________________
> 免费下载 MSN Explorer: http://explorer.msn.com/lccn
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://agentpp.org/mailman/listinfo/agentpp
>





More information about the AGENTPP mailing list