I have a basic WinUI3 C++/WinRT app, containing a resw file with a simple entry named "APPNAME". I wish to put that string in the title of my Xaml form.
My MainWindow.xaml.cpp has this snippet of code in it.
MainWindow::MainWindow()
{
InitializeComponent();
auto resourceLoader{ Windows::ApplicationModel::Resources::ResourceLoader::GetForViewIndependentUse()};
hstring title = resourceLoader.GetString(L"APPNAME");
this->Title(title);
}
The issue seems to be that "Windows::ApplicationModel::Resources" isn't correct. So the question becomes how to access that resw string entry in C++/WinRT?
Many thanks,
Jason
