Visual Studio 2017: I created a Windows project (Windows desktop wizard -> Windows App(Empty)).
Set MFC to use MFC in a shared DLL. Included <afxwin.h>.
And got a plenty of remarks in error list.
Code is here:
#include <afxwin.h>
class CMyWnd : public CFrameWnd
{
public:
    CMyWnd()
    {
        Create(nullptr, _T("Just an stupid app ,isn`t it?"));
    }
};
class CMyApp : public CWinApp
{
public:
    virtual BOOL InitInstance() override;
};
BOOL CMyApp::InitInstance()
{
    m_pMainWnd = new CMyWnd;
    m_pMainWnd->ShowWindow(SW_NORMAL);
    return TRUE;
}
CMyApp MainApp;
However, the program works. What is going on? How can I repair it or just turn off errors in this header? (I am a bit new here so please correct me if I am not right anywhere) Thanks!