Click here to Skip to main content
15,911,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get pointer to client area in CDialog in SDI app?? Pin
zarraza9-Oct-07 9:22
zarraza9-Oct-07 9:22 
AnswerRe: How to get pointer to client area in CDialog in SDI app?? Pin
Iain Clarke, Warrior Programmer9-Oct-07 10:07
Iain Clarke, Warrior Programmer9-Oct-07 10:07 
GeneralRe: How to get pointer to client area in CDialog in SDI app?? Pin
zarraza9-Oct-07 10:37
zarraza9-Oct-07 10:37 
GeneralRe: How to get pointer to client area in CDialog in SDI app?? Pin
Iain Clarke, Warrior Programmer9-Oct-07 11:05
Iain Clarke, Warrior Programmer9-Oct-07 11:05 
GeneralRe: How to get pointer to client area in CDialog in SDI app?? Pin
zarraza9-Oct-07 11:25
zarraza9-Oct-07 11:25 
GeneralRe: How to get pointer to client area in CDialog in SDI app?? Pin
Iain Clarke, Warrior Programmer9-Oct-07 11:30
Iain Clarke, Warrior Programmer9-Oct-07 11:30 
GeneralRe: How to get pointer to client area in CDialog in SDI app?? Pin
zarraza9-Oct-07 11:50
zarraza9-Oct-07 11:50 
GeneralRe: How to get pointer to client area in CDialog in SDI app?? Pin
Roger Broomfield9-Oct-07 15:29
Roger Broomfield9-Oct-07 15:29 
GeneralRe: How to get pointer to client area in CDialog in SDI app?? Pin
zarraza10-Oct-07 11:41
zarraza10-Oct-07 11:41 
Questionvc++code for designing a scientific calculator Pin
AvishekBanerjee9-Oct-07 5:24
AvishekBanerjee9-Oct-07 5:24 
AnswerRe: vc++code for designing a scientific calculator Pin
David Crow9-Oct-07 5:42
David Crow9-Oct-07 5:42 
AnswerRe: vc++code for designing a scientific calculator Pin
toxcct9-Oct-07 5:44
toxcct9-Oct-07 5:44 
AnswerRe: vc++code for designing a scientific calculator Pin
Maximilien9-Oct-07 6:45
Maximilien9-Oct-07 6:45 
AnswerRe: vc++code for designing a scientific calculator Pin
Mark Salsbery9-Oct-07 8:12
Mark Salsbery9-Oct-07 8:12 
JokeRe: vc++code for designing a scientific calculator Pin
Hamid_RT9-Oct-07 9:44
Hamid_RT9-Oct-07 9:44 
AnswerRe: vc++code for designing a scientific calculator Pin
Hamid_RT9-Oct-07 9:54
Hamid_RT9-Oct-07 9:54 
GeneralRe: vc++code for designing a scientific calculator Pin
toxcct9-Oct-07 21:25
toxcct9-Oct-07 21:25 
GeneralRe: vc++code for designing a scientific calculator Pin
Hamid_RT10-Oct-07 7:06
Hamid_RT10-Oct-07 7:06 
QuestionTheory question about "void pBuffer" Pin
Nelek9-Oct-07 4:38
protectorNelek9-Oct-07 4:38 
AnswerRe: Theory question about "void pBuffer" Pin
led mike9-Oct-07 5:00
led mike9-Oct-07 5:00 
QuestionRe: Theory question about "void pBuffer" Pin
Nelek10-Oct-07 0:27
protectorNelek10-Oct-07 0:27 
AnswerRe: Theory question about "void pBuffer" Pin
led mike10-Oct-07 4:46
led mike10-Oct-07 4:46 
GeneralRe: Theory question about void pBuffer Pin
Nelek10-Oct-07 20:45
protectorNelek10-Oct-07 20:45 
Yes, what I write in quote.

It is supposed to give problems while overlapping, but the code that they put in the example (I paste some parts)

char string1[60] = "The quick brown dog jumps over the lazy fox";
char string2[60] = "The quick brown fox jumps over the lazy dog";
/*                           1         2         3         4         5
 *                  12345678901234567890123456789012345678901234567890
 */

//Other function

   printf( "Function:\tmemmove with overlap\n" );
   printf( "Source:\t\t%s\n", string2 + 4 );
   printf( "Destination:\t%s\n", string2 + 10 );
   memmove( string2 + 10, string2 + 4, 40 );
   printf( "Result:\t\t%s\n", string2 );
   printf( "Length:\t\t%d characters\n\n", strlen( string2 ) );

   printf( "Function:\tmemcpy with overlap\n" );
   printf( "Source:\t\t%s\n", string1 + 4 );
   printf( "Destination:\t%s\n", string1 + 10 );
   memcpy( string1 + 10, string1 + 4, 40 );
   printf( "Result:\t\t%s\n", string1 );
   printf( "Length:\t\t%d characters\n\n", strlen( string1 ) );


gives the results that I worte in the message above, and both are making exactly the same and working good. So I don't understand where the problem is. If I could see an example where the quote is true, then I would understand it better.







Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: Theory question about void pBuffer Pin
led mike11-Oct-07 4:59
led mike11-Oct-07 4:59 
GeneralRe: Theory question about void pBuffer Pin
Nelek12-Oct-07 1:59
protectorNelek12-Oct-07 1:59 

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.