Where is the main () located? | developer.brewmp.com Where is the main () located? | developer.brewmp.com

Developer

Where is the main () located?

Forums:

When I create a new application in the BrewMP platform on Eclipse, I cannot find the main function and do not know where to insert my function calls.  How can I verify where the program is starting?

Hi Aaron,
 
Brew is an event-driven platform, so there really isn't a main() function per se in your applet. Instead, most of the processing is done in your applet's _HandleEvent() function. When you create a new application using the IDE plug-ins, you should end up with a _HandleEvent() function. This is where most of the processing of your application is done.
 
Basically, when Brew initializes your applet, you will see the InitAppData() method called. Then the _HandleEvent() function will be called with the event code of EVT_APP_START.
 
I may recommend the following documents to learn more:
a) Brew MP Developer Primer. This document will guide you through creating and running your first Brew applet.
b) Programming Model Tech Guide. This document, just updated today, describes more of the details behind what's created for you by the IDE Plug-Ins.
 
Also, be sure to check out the Online Learning section of the website.
 
Thanks,
Jeremy
 

Hi Aaron,
 
Brew is an event-driven platform, so there really isn't a main() function per se in your applet. Instead, most of the processing is done in your applet's _HandleEvent() function. When you create a new application using the IDE plug-ins, you should end up with a _HandleEvent() function. This is where most of the processing of your application is done.
 
Basically, when Brew initializes your applet, you will see the InitAppData() method called. Then the _HandleEvent() function will be called with the event code of EVT_APP_START.
 
I may recommend the following documents to learn more:
a) Brew MP Developer Primer. This document will guide you through creating and running your first Brew applet.
b) Programming Model Tech Guide. This document, just updated today, describes more of the details behind what's created for you by the IDE Plug-Ins.
 
Also, be sure to check out the Online Learning section of the website.
 
Thanks,
Jeremy
 

Hi Aaron,
Just following up to see if these docs helped clarify how a Brew MP app is structured.  Did you have any remaining questions about this?
Regards,
Jason

Hi Aaron,
Just following up to see if these docs helped clarify how a Brew MP app is structured.  Did you have any remaining questions about this?
Regards,
Jason