locked
Where can I find main fnc? RRS feed

  • Question

  • Guys, I've tried to locate main fnc in metro app project but was unable to do so. Could anyone point me into right direction?

    Thanks.

    Thursday, March 8, 2012 8:23 AM

Answers

  • It's auto-generated by the compiler (see app.g.hpp).

    #ifndef DISABLE_XAML_GENERATED_MAIN
    int main(Platform::Array<Platform::String^>^ args)
    {
     Application::Start(ref new ApplicationInitializationCallback([](ApplicationInitializationCallbackParams^ params) {
      auto app = ref new App();
      }));
    }
    #endif


    http://blog.voidnish.com

    Thursday, March 8, 2012 4:33 PM