MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / App

Method App

proj.winrt/App.cpp:50–67  ·  view source on GitHub ↗

Creates the singleton application object. This is the first line of authored code executed, and as such is the logical equivalent of main() or WinMain().

Source from the content-addressed store, hash-verified

48/// executed, and as such is the logical equivalent of main() or WinMain().
49/// </summary>
50App::App()
51{
52 Suspending({ this, &App::OnSuspending });
53 Resuming({this, &App::OnResuming});
54
55 // Resuming({ this, &AppOnResuming });
56
57#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
58 UnhandledException([this](IInspectable const&, UnhandledExceptionEventArgs const& e)
59 {
60 if (IsDebuggerPresent())
61 {
62 auto errorMessage = e.Message();
63 __debugbreak();
64 }
65 });
66#endif
67}
68
69/// <summary>
70/// Invoked when the application is launched normally by the end user. Other entry points

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected