Skip to content

Error in compiling BM6toXPlaneVideo #2

Description

@urmjs

Getting casting errors while compiling DXGIManager.cpp of BM6toXPlaneVideo project in msvc2019. Will be glad for any fixes to this error.

2>\SyntheticData\BM6toXPlaneVideo\DXGIManager.cpp(236,48): error C2440: 'initializing': cannot convert from 'ATL::CComPtr<IDXGIOutput>' to 'ATL::CComQIPtr<IDXGIOutput1,& _GUID_00cddea8_939b_4b83_a340_a685226666cc>'
2>\SyntheticData\BM6toXPlaneVideo\DXGIManager.cpp(236,48): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
2>\SyntheticData\BM6toXPlaneVideo\DXGIManager.cpp(238,54): error C2440: 'initializing': cannot convert from 'ATL::CComPtr<ID3D11Device>' to 'ATL::CComQIPtr<IDXGIDevice1,& _GUID_77db970f_6276_48ba_ba28_070143b4392c>'
2>\SyntheticData\BM6toXPlaneVideo\DXGIManager.cpp(238,40): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
2>\SyntheticData\BM6toXPlaneVideo\DXGIManager.cpp(424,2): warning C4267: 'argument': conversion from 'size_t' to 'UINT', possible loss of data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions