Skip to content

Custom runtimeclass App build fail #1936

Answered by jaigak
EmmettTsai asked this question in Q&A
Discussion options

You must be logged in to vote

Have you included App.h in MainWindow.xaml.h or MainWindow.xaml.cpp? Unlike other Windows Runtime classes, the App class shouldn't be defined in metadata (IDL) as its internal to the project. Instead, use the get_self method to get a pointer to the instance of the implementation type and access it that way.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EmmettTsai
Comment options

Answer selected by EmmettTsai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants