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 » U++ Library support » TopWindow&PopUp, TrayIcon » how to start TopWindow without GUI_APP_MAIN from other apps? [NEEDS IMPLEMENTATION...]
how to start TopWindow without GUI_APP_MAIN from other apps? [NEEDS IMPLEMENTATION...] [message #1763] Sat, 18 March 2006 08:52 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
how to start TopWindow without GUI_APP_MAIN from other apps?

[Updated on: Sun, 09 April 2006 04:04]

Report message to a moderator

Re: how to start TopWindow without GUI_APP_MAIN from other apps? [message #1765 is a reply to message #1763] Sat, 18 March 2006 08:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Sat, 18 March 2006 02:52

how to start TopWindow without GUI_APP_MAIN from other apps?


Could you be more specific?

Is it about mixing U++ as "sublibrary" of application written using other framework?

Mirek
Re: how to start TopWindow without GUI_APP_MAIN from other apps? [message #1766 is a reply to message #1765] Sat, 18 March 2006 09:00 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Sat, 18 March 2006 07:56

fudadmin wrote on Sat, 18 March 2006 02:52

how to start TopWindow without GUI_APP_MAIN from other apps?


Could you be more specific?

Is it about mixing U++ as "sublibrary" of application written using other framework?

Mirek


something like that... Wink. Would it be enough to re-write that macro?
Re: how to start TopWindow without GUI_APP_MAIN from other apps? [message #1769 is a reply to message #1766] Sat, 18 March 2006 11:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Sat, 18 March 2006 03:00

luzr wrote on Sat, 18 March 2006 07:56

fudadmin wrote on Sat, 18 March 2006 02:52

how to start TopWindow without GUI_APP_MAIN from other apps?


Could you be more specific?

Is it about mixing U++ as "sublibrary" of application written using other framework?

Mirek


something like that... Wink. Would it be enough to re-write that macro?



Yes.

In fact, those admittedly ugly macros serve two purposes:

- they hide main (Linux) vs. WinMain (Win) diferences
- they call some initialization and deinitialization code

BTW, alternatively, if your "main framework" is not using something similar (e.g. MFC does Smile, it should be relatively harmless to use macros even in such framework...

Mirek
Re: how to start TopWindow without GUI_APP_MAIN from other apps? [message #4302 is a reply to message #1766] Mon, 31 July 2006 23:56 Go to previous message
dr_jumba is currently offline  dr_jumba
Messages: 24
Registered: February 2006
Location: Ukraine
Promising Member
fudadmin wrote on Sat, 18 March 2006 10:00

Would it be enough to re-write that macro?

I guess yes.
I have tried to load upp code compiled as a shared library to another app.
I have rewritten GUI_APP_MAIN in 2 parts:
1st is the inititialize code before the call of GuiMainFn_();
2nd is the uninitialize code after GuiMainFn_();
Previous Topic: Resizing a TopWindow but keeping the width/height ratio fixed?
Next Topic: TopWindow Partial Invisibility Option?
Goto Forum:
  


Current Time: Thu Mar 28 20:13:26 CET 2024

Total time taken to generate the page: 0.01401 seconds