Home » U++ Library support » U++ Widgets - General questions or Mixed problems » PromptOK from CONSOLE_APP_MAIN, how?[SOLVED]
|
|
|
Re: PromptOK from CONSOLE_APP_MAIN, how? [message #1792 is a reply to message #1787] |
Sun, 19 March 2006 06:55 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
luzr wrote on Sun, 19 March 2006 04:59 |
fudadmin wrote on Sat, 18 March 2006 19:57 | What do I need this code to work?
#include <CtrlLib/CtrlLib.h>
CONSOLE_APP_MAIN
{
PromptOK("from CONSOLE_APP_MAIN");
}
|
Quite an unorthodox idea. Are creating GUI or CONSOLE app?
BTW, the only real difference on Win32 from system point of view is that console apps creates win32 console at the start (GUI app can create console as well, but needs to call AllocConsole).
On other platforms, there is no difference at all.
Mirek
|
I'd like even to have PromptOK(hwnd,"some text");,
where hwnd=NULL means desktop...
|
|
|
Re: PromptOK from CONSOLE_APP_MAIN, how? [message #1795 is a reply to message #1792] |
Sun, 19 March 2006 09:50 |
|
mirek
Messages: 14105 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Sun, 19 March 2006 00:55 |
luzr wrote on Sun, 19 March 2006 04:59 |
fudadmin wrote on Sat, 18 March 2006 19:57 | What do I need this code to work?
#include <CtrlLib/CtrlLib.h>
CONSOLE_APP_MAIN
{
PromptOK("from CONSOLE_APP_MAIN");
}
|
Quite an unorthodox idea. Are creating GUI or CONSOLE app?
BTW, the only real difference on Win32 from system point of view is that console apps creates win32 console at the start (GUI app can create console as well, but needs to call AllocConsole).
On other platforms, there is no difference at all.
Mirek
|
I'd like even to have PromptOK(hwnd,"some text");,
where hwnd=NULL means desktop...
|
Well, if all you really need is some message box in console app and you are doing Win32 only, maybe the better idea is to use Win32 API there (to conserve the size of .exe).
Mirek
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:53:06 CET 2024
Total time taken to generate the page: 0.02681 seconds
|