Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13975
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: Thu Apr 18 15:28:40 CEST 2024

Total time taken to generate the page: 0.03007 seconds