Код: Выделить всё
void MyWindow:OnPointerPressed(IInspectable const& sender, PointerRoutedEventArgs const& e)
{
auto tb = sender.try_as();
if (!tb) return;
winrt::Windows::UI::Input::PointerPoint pp = e.GetCurrentPoint(tb);
winrt::Windows::Foundation::Point pointerPosition = pp.Position(); // ERROR
// More code...
}
Код: Выделить всё
C3779 'winrt::impl::consume_Windows_UI_Input_IPointerPointwinrt::Windows::UI::Input::IPointerPoint::Position': Can't use a function returning 'auto' before being defined'
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/794 ... en-c-winrt
Мобильная версия