Initial port to Visual Studio Express