Click here to Skip to main content
15,903,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow my parent window class could be notified of its child's windows movement? Pin
A&Ms14-Nov-09 4:29
A&Ms14-Nov-09 4:29 
AnswerRe: How my parent window class could be notified of its child's windows movement? Pin
BobInNJ14-Nov-09 5:49
BobInNJ14-Nov-09 5:49 
GeneralRe: How my parent window class could be notified of its child's windows movement? Pin
A&Ms14-Nov-09 16:39
A&Ms14-Nov-09 16:39 
GeneralRe: How my parent window class could be notified of its child's windows movement? Pin
BobInNJ19-Nov-09 5:38
BobInNJ19-Nov-09 5:38 
Questionwhy execution time of program varies with identical initial settings? Pin
jianzhuhuai14-Nov-09 1:23
jianzhuhuai14-Nov-09 1:23 
AnswerRe: why execution time of program varies with identical initial settings? Pin
LunaticFringe14-Nov-09 2:41
LunaticFringe14-Nov-09 2:41 
AnswerRe: why execution time of program varies with identical initial settings? Pin
BobInNJ14-Nov-09 5:43
BobInNJ14-Nov-09 5:43 
GeneralRe: why execution time of program varies with identical initial settings? Pin
jianzhuhuai18-Nov-09 3:22
jianzhuhuai18-Nov-09 3:22 
I build a release version exe program in MFC for image segmentation.
I start the exe.
I open an image and a child window appears, after the command for segmentation is executed, the time is recorded. Note I use the same setting in each run and stop all irrelevant programs in computer.
I do this operation several times and record time expense for each run.
here are a list of time expense:
first, 2.609s;
second,3.297s;
third, 3.469s;
fourth,3.406s---.
They vary mysteriously!
If I restart this exe, the time for the first run also changes, but the first runs always spend less time than later runs.
If I want to get stable time expense, What should I do to improve my code?
GeneralRe: why execution time of program varies with identical initial settings? Pin
BobInNJ19-Nov-09 5:34
BobInNJ19-Nov-09 5:34 
GeneralRe: why execution time of program varies with identical initial settings? Pin
jianzhuhuai23-Nov-09 0:34
jianzhuhuai23-Nov-09 0:34 
Question[Message Deleted] Pin
kumar sanghvi13-Nov-09 23:56
kumar sanghvi13-Nov-09 23:56 
AnswerRe: singleton Pin
Richard MacCutchan14-Nov-09 0:38
mveRichard MacCutchan14-Nov-09 0:38 
Questioninitialisation inside struct Pin
kumar sanghvi13-Nov-09 23:20
kumar sanghvi13-Nov-09 23:20 
AnswerRe: initialisation inside struct Pin
Richard MacCutchan14-Nov-09 0:47
mveRichard MacCutchan14-Nov-09 0:47 
Questionhow to display a bitmap which have 24 colors Pin
tfzxyinhao13-Nov-09 23:05
tfzxyinhao13-Nov-09 23:05 
AnswerRe: how to display a bitmap which have 24 colors Pin
Hadi Dayvary14-Nov-09 1:02
professionalHadi Dayvary14-Nov-09 1:02 
GeneralRe: how to display a bitmap which have 24 colors Pin
tfzxyinhao14-Nov-09 2:14
tfzxyinhao14-Nov-09 2:14 
GeneralRe: how to display a bitmap which have 24 colors Pin
Hadi Dayvary14-Nov-09 2:26
professionalHadi Dayvary14-Nov-09 2:26 
GeneralRe: how to display a bitmap which have 24 colors Pin
tfzxyinhao14-Nov-09 3:00
tfzxyinhao14-Nov-09 3:00 
GeneralRe: how to display a bitmap which have 24 colors Pin
Hadi Dayvary14-Nov-09 3:26
professionalHadi Dayvary14-Nov-09 3:26 
GeneralRe: how to display a bitmap which have 24 colors Pin
jianzhuhuai18-Nov-09 2:38
jianzhuhuai18-Nov-09 2:38 
QuestionWhen is "bmp" not equal to "bmp"? Pin
Sauce!13-Nov-09 20:34
Sauce!13-Nov-09 20:34 
AnswerRe: When is "bmp" not equal to "bmp"? Pin
«_Superman_»14-Nov-09 9:28
professional«_Superman_»14-Nov-09 9:28 
GeneralRe: When is "bmp" not equal to "bmp"? Pin
Sauce!14-Nov-09 13:08
Sauce!14-Nov-09 13:08 
QuestionVertical Text in OnDraw() Pin
Anu_Bala13-Nov-09 20:14
Anu_Bala13-Nov-09 20:14 

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.