need to check why the owl and MFC context
Which compiler are you using? MFC is for MS VS. OWL (replaced by VCL in 1997) is for Embarcadero C++ Builder.

There is now OWLNext which can be used with either C++ Builder or VS providing you have an existing OWL licence.
https://sourceforge.net/p/owlnext/wiki/Main_Page/