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

Jochen Katz katz at agentpp.com
Wed Jan 26 21:51:33 CET 2005


Hi,

>   but if  Vbx* pVbs = new Vbx[num]; Vbx[num]->set_oid(getOid); num++ it 
> is error !

the following will work:

    int size = 20;
    Vbx *pVbx = new Vbx[size];
    pVbx[0].set_oid("1.3.4.5.6");
    pVbx[1].set_oid("1.3.4.5.7");

Regards,
  Jochen



More information about the AGENTPP mailing list