I'm not familiar with c++ so I couldn't tell you if dynamic allocation in c++ is available in vb.net