This can only happen if you have somewhere “using namespace VSTGUI” in your header. So remove it.
Cheers, Arne