A Microsoft platform for building and publishing apps for Windows devices.
Try something like this:
window.PointerPressed( { this, &App::OnPointerPressed } );
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I mooved recently from c++/cx to Winrt, And usually i would do it like this:
window.PointerPressed^ += new TypedEventHandler<CoreWindow^, PointerEventArgs^>(this, App::OnPointerPressed);
and it would work fine, but when i mooved it to winrt, i thought i would have to write it like this:
window.PointerPressed += new TypedEventHandler<CoreWindow, PointerEventArgs>(this, App::OnPointerPressed)
It threw an error but it could easily be resolved by writing it like this:
window.PointerPressed& += new TypedEventHandler<CoreWindow, PointerEventArgs>(this, App::OnPointerPressed);
but then three more errors showed up, Namely: CS2059, E0300, and C259 - Syntax Error '+='
How Can i Fix this?
A Microsoft platform for building and publishing apps for Windows devices.
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Answer accepted by question author
Try something like this:
window.PointerPressed( { this, &App::OnPointerPressed } );