Click here to Skip to main content
15,906,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhere's main() ??? Pin
Dave Sweetser16-Nov-03 14:10
Dave Sweetser16-Nov-03 14:10 
AnswerRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 14:22
professionalRavi Bhavnani16-Nov-03 14:22 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 14:34
Dave Sweetser16-Nov-03 14:34 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:00
professionalRavi Bhavnani16-Nov-03 15:00 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:22
Dave Sweetser16-Nov-03 15:22 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:37
professionalRavi Bhavnani16-Nov-03 15:37 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:57
Dave Sweetser16-Nov-03 15:57 
GeneralRe: where's main() ??? Pin
Johnny ²16-Nov-03 21:43
Johnny ²16-Nov-03 21:43 
For a GUI application you need to think in terms of what you do to react to user input, not the classical main approach. As such, do not think of your dialog application as having a main code section - your application responds to messages from the Windows message system, and it is within the handlers for these messages that your application code is distributed as appropriate. In the case of drawing a circle in the window, then you would put that code within the handler for the WM_PAINT message, for example, which is called whenever the window needs to be redrawn. If you bring up the ClassWizard then it allows you to define a whole host of these functions to respond to most things. To stress, dont think of it in terms of having a main code section - Windows handles all that, you just respond to its messages.
GeneralRe: where's main() ??? Pin
Ravi Bhavnani17-Nov-03 3:43
professionalRavi Bhavnani17-Nov-03 3:43 
GeneralI need some help please Pin
Anonymous16-Nov-03 13:18
Anonymous16-Nov-03 13:18 
GeneralRe: I need some help please Pin
Christian Graus16-Nov-03 16:16
protectorChristian Graus16-Nov-03 16:16 
GeneralGetting the system date Pin
kerplatz16-Nov-03 11:56
kerplatz16-Nov-03 11:56 
GeneralRe: Getting the system date Pin
Michael Dunn16-Nov-03 12:38
sitebuilderMichael Dunn16-Nov-03 12:38 
GeneralRe: Getting the system date Pin
kerplatz16-Nov-03 13:10
kerplatz16-Nov-03 13:10 
GeneralRe: Getting the system date Pin
Steve S17-Nov-03 2:05
Steve S17-Nov-03 2:05 
QuestionHow to move a CToolBar? Pin
Florin Ochiana16-Nov-03 11:32
Florin Ochiana16-Nov-03 11:32 
QuestionHow to show (restore) my window when MessageBox dialog is not closed? Pin
julych16-Nov-03 10:38
julych16-Nov-03 10:38 
AnswerRe: How to show (restore) my window when MessageBox dialog is not closed? Pin
Uma Mahes16-Nov-03 17:39
Uma Mahes16-Nov-03 17:39 
GeneralToggle views :: In_SplitterWnd Pin
gaesabal16-Nov-03 8:23
gaesabal16-Nov-03 8:23 
GeneralRe: Toggle views :: In_SplitterWnd Pin
Ivor S. Sargoytchev16-Nov-03 16:43
Ivor S. Sargoytchev16-Nov-03 16:43 
GeneralRestricting programs to parts of the screen Pin
Anonymous16-Nov-03 4:59
Anonymous16-Nov-03 4:59 
GeneralRe: Restricting programs to parts of the screen Pin
Michael Dunn16-Nov-03 5:23
sitebuilderMichael Dunn16-Nov-03 5:23 
Generalhelp wanted, pdf file split operation Pin
NotProfessional15-Nov-03 20:19
NotProfessional15-Nov-03 20:19 
GeneralHelp me: need strategy for CrashLogs Pin
Peter Weyzen15-Nov-03 18:22
Peter Weyzen15-Nov-03 18:22 
GeneralRe: Help me: need strategy for CrashLogs Pin
Michael P Butler16-Nov-03 1:48
Michael P Butler16-Nov-03 1:48 

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.