none
[MFC] Errors in 1 of two DLL Projects (limits, afxdlgs.h, afxext.h, afxole.h have errors) RRS feed

  • Question

  • Currently, I'm attempting to compile two MFC Extension DLLs (the solution has more but for the moment, we'll focus on thee two)

    VideoGraphics  (Does NOT Compile)

    TrecLib (Compiles)

    VideoGraphics does depend on TrecLib.

    I've compared "stdafx.h", "stdafx.cpp", "resources.h", "targetver.h" in both projects and they seem to be the same.

    When I compile TrecLib, the DLL compiles. But when I compile VideoGraphics, I get 106 errors:

    1>------ Build started: Project: VideoGraphics, Configuration: Debug Win32 ------
    1>stdafx.cpp
    1>_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(161): error C2065: 'FLT_RADIX': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(161): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(161): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1042): error C2065: 'FLT_MANT_DIG': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1042): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1042): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1043): error C2065: 'FLT_DIG': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1043): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1043): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1045): error C2065: 'FLT_MAX_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1045): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1045): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1046): error C2065: 'FLT_MAX_10_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1046): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1046): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1047): error C2065: 'FLT_MIN_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1047): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1047): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1048): error C2065: 'FLT_MIN_10_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1048): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1048): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(999): error C2065: 'FLT_MIN': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1004): error C2065: 'FLT_MAX': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1014): error C2065: 'FLT_EPSILON': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1024): error C2065: 'FLT_TRUE_MIN': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1101): error C2065: 'DBL_MANT_DIG': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1101): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1101): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1102): error C2065: 'DBL_DIG': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1102): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1102): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1104): error C2065: 'DBL_MAX_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1104): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1104): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1105): error C2065: 'DBL_MAX_10_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1105): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1105): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1106): error C2065: 'DBL_MIN_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1106): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1106): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1107): error C2065: 'DBL_MIN_10_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1107): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1107): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1058): error C2065: 'DBL_MIN': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1063): error C2065: 'DBL_MAX': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1073): error C2065: 'DBL_EPSILON': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1083): error C2065: 'DBL_TRUE_MIN': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1160): error C2065: 'LDBL_MANT_DIG': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1160): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1160): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1161): error C2065: 'LDBL_DIG': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1161): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1161): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1163): error C2065: 'LDBL_MAX_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1163): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1163): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1164): error C2065: 'LDBL_MAX_10_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1164): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1164): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1165): error C2065: 'LDBL_MIN_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1165): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1165): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1166): error C2065: 'LDBL_MIN_10_EXP': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1166): error C2131: expression did not evaluate to a constant
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1166): note: a non-constant (sub-)expression was encountered
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1117): error C2065: 'LDBL_MIN': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1122): error C2065: 'LDBL_MAX': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1132): error C2065: 'LDBL_EPSILON': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\limits(1142): error C2065: 'LDBL_TRUE_MIN': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxdlgs.h(102): error C2504: 'CDialog': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxdlgs.h(898): error C2504: 'CDialog': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxdlgs.h(993): error C2504: 'CWnd': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(75): error C2504: 'CButton': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(132): error C2504: 'CWnd': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(511): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(511): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(511): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(513): error C2061: syntax error: identifier '_AFX_OCC_DIALOG_INFO'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(585): error C2504: 'CWnd': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(762): error C2504: 'CScrollView': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(824): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(824): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(824): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(825): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(825): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(825): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(826): error C2061: syntax error: identifier '_AFX_OCC_DIALOG_INFO'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(827): error C2143: syntax error: missing ';' before '*'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(827): error C2433: 'CFormView::_AFX_OCC_DIALOG_INFO': 'virtual' not permitted on data declarations
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(827): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(827): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(782): error C3861: 'GetAccessibleChild': identifier not found
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(787): error C3861: 'GetAccessibleChildCount': identifier not found
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(793): error C3861: 'GetAccessibleName': identifier not found
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(798): error C3861: 'GetAccessibilityLocation': identifier not found
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(803): error C3861: 'GetAccessibilityHitTest': identifier not found
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(841): error C2504: 'CCtrlView': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxext.h(929): error C2065: 'adjustBorder': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(204): error C3646: 'DoDragDrop': unknown override specifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(204): error C2059: syntax error: '('
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(207): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(311): error C2504: 'CDocument': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(556): error C3646: 'DoDragDrop': unknown override specifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(556): error C2059: syntax error: '('
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(559): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(882): error C3646: 'DoDragDrop': unknown override specifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(882): error C2059: syntax error: '('
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(885): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1376): error C2504: 'CFrameWnd': base class undefined
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1761): error C2061: syntax error: identifier 'DROPEFFECT'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1805): error C3646: 'OnDragEnter': unknown override specifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1805): error C2065: 'pWnd': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1805): error C2275: 'CWnd': illegal use of this type as an expression
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxwin.h(169): note: see declaration of 'CWnd'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1805): error C2065: 'pDataObject': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1805): error C2275: 'COleDataObject': illegal use of this type as an expression
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(138): note: see declaration of 'COleDataObject'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1806): error C2275: 'DWORD': illegal use of this type as an expression
    1>c:\program files (x86)\windows kits\8.1\include\shared\minwindef.h(156): note: see declaration of 'DWORD'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1806): error C2146: syntax error: missing ')' before identifier 'dwKeyState'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1806): error C2238: unexpected token(s) preceding ';'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1807): error C3646: 'OnDragOver': unknown override specifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1807): error C2065: 'pWnd': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1807): error C2275: 'CWnd': illegal use of this type as an expression
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxwin.h(169): note: see declaration of 'CWnd'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1807): error C2065: 'pDataObject': undeclared identifier
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1807): error C2275: 'COleDataObject': illegal use of this type as an expression
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(138): note: see declaration of 'COleDataObject'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1808): error C2275: 'DWORD': illegal use of this type as an expression
    1>c:\program files (x86)\windows kits\8.1\include\shared\minwindef.h(156): note: see declaration of 'DWORD'
    1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\atlmfc\include\afxole.h(1808): fatal error C1003: error count exceeds 100; stopping compilation
    1>Done building project "VideoGraphics.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I'm not sure what I did that would have caused this. I did add a few classes to TrecLib and modified one, but I can't figure out why it would cause the errors I'm currently getting in the above project.

    Things I've tried:

    1. Uninstalling MFC and installing a version of MFC that was written with Spectre in mind.

    2. Recreating the projects and copying over my code from the old versions and into the new versions

    3. Restarting Visual Studio

    4. Uninstalling and Reinstalling Visual Studio

    5. Playing around with the highlighted project settings shown below

     Played around with three versions of Windows 10 and currently set to 8.1

    Moved the platform toolset from v141 to v140

    Even tried switching between Unicode and MCBS.

    I am still facing the same set of errors (and I wasn't a few weeks ago). Is there something I could be doing or could there be a bug with a recent Visual Studio update?

    Sunday, October 14, 2018 4:08 PM