Win32 Application (if you don't want open console window when the application is running, you should not use console application).
Application
Windows class (MainWindows or Some kind of DialogWindows)
Thread Class(you can have several thread runing, controled by windows class);
APIENTRY wMain
Get and save some system information into globle varibles such as windows version, current module directory,cmd argv
Create MainWindow object or MainDialog object and make it showwindows
Enter Message dispatching
Exit
MainWindow or MainDialog
Save some program related parameters in the MainWindow class
create thread (if need)
Process message
Thread
do work
exit.
--------------------------------
Dr. Vivek Murthy
4 years ago
No comments:
Post a Comment