C++ Programming Guide

#pragma ident

#pragma ident string

Use ident to place string in the .comment section of the executable.