Remove unneeded variable assignments.
Use %d for integer instead of %i for consistency.
MainFrm.cpp: fix pointer field type in Format call.

(analyze warning C6273)