'IInspectable': ambiguous symbol & 'iUnknown': ambiguous symbol

  • Thread starter Thread starter Gavin..Williams
  • Start date Start date
G

Gavin..Williams

Guest
Hi,

I have these errors when looking at my Dx11Graphics.cpp file, these errors occur in File : client.h, line 69 & 76 ...

C2872 'IInspectable': ambiguous symbol
C2872 'IUnknown': ambiguous symbol

And I have these errors when looking at my App.cpp file ..

1295296.png

There are no other errors,

Here's my App.cpp includes and namespaces ..

#include "pch.h"
#include <winrt/Windows.Graphics.Imaging.h>
#include <winrt/Windows.Graphics.Display.h>
#include <Windows.UI.Composition.Interop.h>
#include <MemoryBuffer.h>
#include <Unknwn.h>
#include "Dx11Graphics.cpp"
#include "DeviceLostHelper.cpp"
//#include "DeviceLostEventArgs.cpp"
//using namespace Windows::Foundation;
//using namespace winrt;
using namespace winrt::Windows;
using namespace winrt::Windows::ApplicationModel::Core;
using namespace winrt::Windows::Foundation;
using namespace winrt::Windows::Foundation::Numerics;
using namespace winrt::Windows::UI;
using namespace winrt::Windows::UI::Core;
using namespace winrt::Windows::UI::Composition;
using namespace winrt::Windows::Graphics::Imaging;
using namespace winrt::Windows::Graphics::DirectX;
using namespace winrt::Windows::Graphics::Display;
//namespace CompNS = winrt::Windows::UI::Composition;
namespace ABI_NS
{
using namespace ABI::Windows::Foundation;
using namespace ABI::Windows::Graphics::DirectX;
using namespace ABI::Windows::UI::Composition;
}
Here's my Dx11Graphics.cpp includes and namespaces …

#include "pch.h"
#include <d2d1_3.h>
#include <d3d11.h>
#include <wrl.h>
#include <dxgi1_3.h>

using namespace winrt::Windows::Graphics::DirectX;
using namespace Microsoft::WRL;
And here's my pch.h file …

//
// pch.h
// Header for platform projection include files
//

#pragma once

#define NOMINMAX

#include "winrt/Windows.ApplicationModel.Core.h"
#include "winrt/Windows.UI.Core.h"
#include "winrt/Windows.UI.Composition.h"
#include "winrt/Windows.UI.Input.h"
Edit : More info : Here's DeviceLostHelper.cpp …

#include "pch.h"
#include <dxgi.h>
#include <d3d11_4.h>
#include <winrt/Windows.Graphics.DirectX.Direct3D11.h>
#include <windows.graphics.directx.direct3d11.interop.h>

using namespace winrt::Windows::Graphics::DirectX::Direct3D11;

Continue reading...
 
Back
Top