Answered Where can I find main fnc?

  • Thursday, March 08, 2012 8:23 AM
     
     

    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.

All Replies

  • Thursday, March 08, 2012 4:33 PM
     
     Answered

    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