Oh..
So the c++ code which you gave is of no use in MFC project?
NO NO, it can be used since it is a Class based on OOP.
However, for MFC to build the same app as in C#
you must focus on the User Interface first and then
core functions and code.
Itknowledge24.com