If you are speaking about a switch that actually strips out the code comments (that start with /* or //) then I don't believe there is one.
On the other side, you can use the compiler switch /P which will generate a preprocesssed version of your file. Such version will not contain the comments.
Thanks,
Ayman Shoukry
VC++ Team
↧
Compiler option
↧