U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ Developers corner » Should be GUI_APP_MAIN or CONSOLE_APP_MAIN ignored in non-main package?
Should be GUI_APP_MAIN or CONSOLE_APP_MAIN ignored in non-main package? [message #55627] Wed, 25 November 2020 12:29 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Sometimes I am using main package as non-main (usually as temporary duck-tape solution, but still useful sometimes). In those situations, I usually add

#ifdef flagMAIN
GUI_APP_MAIN
{
	MyApp().Run();
}
#endif


around MAIN. Which now made me think: This could be done by the library too. Should I go there? I suspect that there might be some problems down the road...

Mirek

[Updated on: Wed, 25 November 2020 12:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: build_info.h
Next Topic: Cross Compilation: For Mac on Linux
Goto Forum:
  


Current Time: Sun May 10 09:23:23 GMT+2 2026

Total time taken to generate the page: 0.00509 seconds