re: help w/C++
If you don't want to rename your file, use the CXXSRC option on the SC
command to force SC to treat your file as a C++ source file.
If you don't tell it explicitly what file type a given file is, SC makes its
best guess. You can use the CSRC, CXXSRC, ASM, and LIB keywords to force SC
to treat files certain ways.
This is all covered in the User's Guide; I suggest you browse through the
SC command line description before you get much further.
–Doug