Thanks alot for sharing this! I really needed something like this.

I don't have a compiler, could you make a compiled version available? Or is there a free compiler that will compile this?

I saw this line: #include "stdafx.h". I'm not a C++ coder, but shouldn't you share that file aswell or is it a comon file?