The urls in Solution #1 are good (+5 to Krunal). Another solution that I depend on is unit testing. This technique works especially well on DLLs that do not have UI code in them. My favorite unit testing framework for C++/MFC (as you have flagged) is
CppUnit[
^].