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]
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: 14261
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DoubleClick or RightClick [SOLVED]
Next Topic: Why there are no SetParent() or SetOwner() ? [TOO DANGEROUS...]
Goto Forum:
  


Current Time: Sat Jun 07 16:30:56 CEST 2025

Total time taken to generate the page: 0.05280 seconds