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