Depends on the compiler version you are using....

M$ makes it easy, just add a resource file containing version information to the build.

Don't know about other compilers...

HTH
McToo