Reference » Global functions » MAppMain

Elgrint::MAppMain() function

Declaration (see elgrint.h):

extern void MAppMain();

Description

The main function of the app. Has to be defined by the developer to create an app.

Details

The framework calls MAppMain internally shortly after the app starts, and terminates the app shortly after MAppMain returns.

'MAppMain' has to call MWindow::runMessageLoop at least once (usually only once) to prevent it from returning prematurely.

Window objects can only be created from inside the MAppMain function (directly or indirectly).

Example

Let us know

Please Contact us to report any errors on this page, or to suggest any improvements.

Miranor Home | About Miranor | About Elgrint | Create account | Login | Account settings | Contact Us | Privacy Policy | Site map

© Copyright 2014 by Miranor. All rights reserved. By using this site you agree to the Terms of Use.

Page last updated on August 10th, 2014.