Click here to Skip to main content
15,887,477 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to use a work thread write file and the main thread show a carton Pin
Randor 6-Jan-13 17:39
professional Randor 6-Jan-13 17:39 
QuestioncapDriverConnect displays captured frame in CView Pin
Vaclav_4-Jan-13 16:15
Vaclav_4-Jan-13 16:15 
QuestionWhat is the merit to rewrite memcpy? Pin
econy4-Jan-13 7:31
econy4-Jan-13 7:31 
AnswerRe: What is the merit to rewrite memcpy? Pin
Richard MacCutchan4-Jan-13 9:19
mveRichard MacCutchan4-Jan-13 9:19 
GeneralRe: What is the merit to rewrite memcpy? Pin
econy4-Jan-13 10:31
econy4-Jan-13 10:31 
GeneralRe: What is the merit to rewrite memcpy? Pin
jeron14-Jan-13 10:49
jeron14-Jan-13 10:49 
GeneralRe: What is the merit to rewrite memcpy? Pin
Richard MacCutchan5-Jan-13 1:20
mveRichard MacCutchan5-Jan-13 1:20 
AnswerRe: What is the merit to rewrite memcpy? Pin
jschell6-Jan-13 5:02
jschell6-Jan-13 5:02 
econy wrote:
I wonder why the coder didnot use standard C memcpy functio


1. They didn't know it existed.
2. The 'volatile' is important.
3. They thought 'volatile' was important. Perhaps due to the source of the pointers being passed.
4. They are doing a lot of very small copies and the compiler will optimize those with a user method but will not do so with a library method (it will always call the library method rather than attempting to unroll it.)
5. memcpy returns a value, the method doesn't. Perhaps that was important in terms of stack space.
6. The code was originally written with a very early version of the compiler and memcpy was buggy. Or the coder thought it was buggy. No one has challenged that since then.

Could also be a combination of the above.
AnswerRe: What is the merit to rewrite memcpy? Pin
Joe Woodbury7-Jan-13 10:15
professionalJoe Woodbury7-Jan-13 10:15 
QuestionWhat is the benefit using duplicate loop statement [solved] Pin
econy4-Jan-13 4:53
econy4-Jan-13 4:53 
AnswerRe: What is the benefit using duplicate loop statement Pin
jeron14-Jan-13 5:29
jeron14-Jan-13 5:29 
GeneralRe: What is the benefit using duplicate loop statement Pin
econy4-Jan-13 6:37
econy4-Jan-13 6:37 
GeneralRe: What is the benefit using duplicate loop statement Pin
jeron14-Jan-13 6:58
jeron14-Jan-13 6:58 
GeneralRe: What is the benefit using duplicate loop statement Pin
econy4-Jan-13 7:21
econy4-Jan-13 7:21 
GeneralRe: What is the benefit using duplicate loop statement Pin
Richard MacCutchan4-Jan-13 6:59
mveRichard MacCutchan4-Jan-13 6:59 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
CPallini6-Jan-13 23:09
mveCPallini6-Jan-13 23:09 
AnswerRe: What is the benefit using duplicate loop statement [solved] Pin
Joe Woodbury7-Jan-13 10:19
professionalJoe Woodbury7-Jan-13 10:19 
QuestionIt's too slow to use the DrawDibDraw to draw a frame. Pin
yu-jian4-Jan-13 3:31
yu-jian4-Jan-13 3:31 
Questionhow to create font by unicode value? Pin
Falconapollo4-Jan-13 1:30
Falconapollo4-Jan-13 1:30 
AnswerRe: how to create font by unicode value? Pin
Richard MacCutchan4-Jan-13 3:23
mveRichard MacCutchan4-Jan-13 3:23 
Questionwhen writing file,dispaly a animation with avi Pin
haha_c3-Jan-13 22:51
haha_c3-Jan-13 22:51 
AnswerRe: when writing file,dispaly a animation with avi Pin
Rajesh R Subramanian4-Jan-13 0:04
professionalRajesh R Subramanian4-Jan-13 0:04 
GeneralRe: when writing file,dispaly a animation with avi Pin
haha_c4-Jan-13 14:34
haha_c4-Jan-13 14:34 
QuestionMS Visual Studio Express 2010, Cygwin, Eclipse together Pin
trinh.nguyen3-Jan-13 14:39
trinh.nguyen3-Jan-13 14:39 
AnswerRe: MS Visual Studio Express 2010, Cygwin, Eclipse together Pin
April Fans3-Jan-13 17:42
April Fans3-Jan-13 17:42 

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.