the first one would be within your class but outside of the method, since it's an instance variable. You would want to put the second code once you created the window (panel).. and add this Textbox to your panel
I personally haven't tried it myself on C++, but that's what I would do in Java too
