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 » U++ Widgets - General questions or Mixed problems » PromptOK from CONSOLE_APP_MAIN, how?[SOLVED]
PromptOK from CONSOLE_APP_MAIN, how?[SOLVED] [message #1785] Sun, 19 March 2006 01:57 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
What do I need this code to work?

#include <CtrlLib/CtrlLib.h>

CONSOLE_APP_MAIN
{
	PromptOK("from CONSOLE_APP_MAIN");
}

[Updated on: Sun, 19 March 2006 07:21]

Report message to a moderator

Re: PromptOK from CONSOLE_APP_MAIN, how? [message #1786 is a reply to message #1785] Sun, 19 March 2006 04:12 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Ok, I've found that for WIN32 this helps:
#include <CtrlLib/CtrlLib.h>

CONSOLE_APP_MAIN
{
   Ctrl::InitWin32(AppGetHandle());
   PromptOK("from CONSOLE_APP_MAIN");
}


Need to investigate for other platforms... Smile
Re: PromptOK from CONSOLE_APP_MAIN, how? [message #1787 is a reply to message #1785] Sun, 19 March 2006 05:59 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 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
Re: PromptOK from CONSOLE_APP_MAIN, how? [message #1792 is a reply to message #1787] Sun, 19 March 2006 06:55 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 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 Go to previous message
mirek is currently offline  mirek
Messages: 13975
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
Previous Topic: DoubleClick or RightClick [SOLVED]
Next Topic: Why there are no SetParent() or SetOwner() ? [TOO DANGEROUS...]
Goto Forum:
  


Current Time: Sat May 04 09:39:43 CEST 2024

Total time taken to generate the page: 0.02267 seconds