If it's possible in VB then it'll be possible in C++ as well.
How would you do it in VB; that might indicate how it can be done in C++.