Click here to Skip to main content
15,923,120 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionWhen should I choose Windows application or Console application? Pin
ComCoderCsharp17-Dec-06 7:30
ComCoderCsharp17-Dec-06 7:30 
AnswerRe: When should I choose Windows application or Console application? Pin
David Crow19-Dec-06 9:55
David Crow19-Dec-06 9:55 
GeneralRe: When should I choose Windows application or Console application? Pin
Roger Wright21-Dec-06 11:59
professionalRoger Wright21-Dec-06 11:59 
AnswerRe: When should I choose Windows application or Console application? Pin
PIEBALDconsult26-Dec-06 11:01
mvePIEBALDconsult26-Dec-06 11:01 
AnswerRe: When should I choose Windows application or Console application? Pin
Rilhas22-Jan-07 13:03
Rilhas22-Jan-07 13:03 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 6:11
professionalJeremy Falcon31-Jan-07 6:11 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 11:14
Rilhas31-Jan-07 11:14 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 11:52
professionalJeremy Falcon31-Jan-07 11:52 
Rilhas wrote:
I'm sorry, but that is not true. An MFC application is much easier to startup that Win32.


You're arguing apples to oranges. I never said MFC wasn't easier. You said, and I quote, "Simple Win32 applications start without any interface, so it will be dificult to interact with the users, even for a simple printf!" To that I said it's not true. I never said MFC wasn't easier to use.

Rilhas wrote:
An MFC application skeleton will typically create a window for you, which is the hardest step. Then you visually add a text box or whatever, and output to it using SetDlgItemText(). This is very simple. The corresponding simplest alternative in raw Win32 is the MessaBox (since we don't want to create a normal window) and this is not really equivalent because the program stops until the message box is dismissed.


No offense, but you must be inexperienced. You may wish to try out that project wizard again for a Win32 app and notice it will create a window - which is what I said. Also, the dialog editor applies exactly the same way as it does for a MFC project.

What you're confusing is the amount of options the MFC wizard gives you compared to the Win32 one (ie, you can select a dialog-based app in the MFC wizard). Any dialog in Windows could make use of the editor no matter what framework. The Win32 wizard just gives you the option to create a normal window (think frame).

Rilhas wrote:
I can send you a simple hello world application based on a skeleton to which I add just 2 or 3 extra lines. With another 3 or 4 lines I can show the equivalent to scanf for inputing text. I bet you cannot do the same starting from a Win32 skeleton. At leaste not with lines as short as mine! In this sense MFC does rival to console applications (in the low number of lines required to startup a program).


This only proves you have no clue what you're even arguing about.


GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 12:23
Rilhas31-Jan-07 12:23 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 12:34
professionalJeremy Falcon31-Jan-07 12:34 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 12:56
Rilhas31-Jan-07 12:56 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 13:00
professionalJeremy Falcon31-Jan-07 13:00 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:12
Rilhas31-Jan-07 13:12 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 13:17
professionalJeremy Falcon31-Jan-07 13:17 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:31
Rilhas31-Jan-07 13:31 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 11:55
professionalJeremy Falcon31-Jan-07 11:55 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 12:29
Rilhas31-Jan-07 12:29 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 12:36
professionalJeremy Falcon31-Jan-07 12:36 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 12:46
Rilhas31-Jan-07 12:46 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 12:56
professionalJeremy Falcon31-Jan-07 12:56 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:05
Rilhas31-Jan-07 13:05 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 13:12
professionalJeremy Falcon31-Jan-07 13:12 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:23
Rilhas31-Jan-07 13:23 
GeneralRe: When should I choose Windows application or Console application? Pin
Jeremy Falcon31-Jan-07 13:30
professionalJeremy Falcon31-Jan-07 13:30 
GeneralRe: When should I choose Windows application or Console application? Pin
Rilhas31-Jan-07 13:32
Rilhas31-Jan-07 13:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.