void myButtonTapped(
winrt::Windows::IInspectable const & sender,
const Windows::UI::Xaml::RoutedEventArgs & args)
{
textBlock.Text( L"Tapped" );
}
void OnLaunched(LaunchActivatedEventArgs const &)
{
buttonM.Tapped({ this, &HelloGui::myButtonTapped });
// error LNK2019 : unresolved external symbol winrt::Windows::UI::Xaml::Input::TappedEventHandler::TappedEventHandler
// <class HelloGui,void (__cdecl HelloGui::*)(struct winrt::Windows::IInspectable const &,struct winrt::Windows::UI::Xaml::RoutedEventArgs const &)>
//
// referenced in function HandleTapped(void)
I thought to try a button Tapped event handler instead of a Click. It compiled, but did not link.
I thought to try a button Tapped event handler instead of a Click. It compiled, but did not link.