Following the previous thread (https://dev.opencascade.org/index.php?q=node/1284), i was able to compile the Sample\MFC projects.
It goes well after following the fix in previous thread.
The issue is that executables (.exe files)(all of them) cannot be independent run from windows explorer or terminal (drawing canvas does not start). It can be started from within the visual studio environment though. When exe are started from terminal or windows explorer, it started with a dialogue part of the application but not able to load the drawing canvas. After a while, the program stops without any error.
Visual studio 2019 vs142 is used with downloaded pre-compiled OpenCascade-7.4.0. (64 bit version).
What could be the possible reason for that?
Sorry! Just found out that newly made exe files can be run. Solved!