i know how to do this in vb6 but i dont know this in c++