Although C++ is very fast and efficient making it a good choice for real-time code the programming language isn't important . What matters is the Operating System.
EDIT: Just realized this is in the Windows forum. Just so you know, WinDOZE won't do anything in real-time (except for Widows CE, I think).