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

C / C++ / MFC

 
QuestionVideo display gets corrupted, Plays grey only? Pin
mbatra319-May-13 21:34
mbatra319-May-13 21:34 
AnswerRe: Video display gets corrupted, Plays grey only? Pin
SoMad10-May-13 8:22
professionalSoMad10-May-13 8:22 
QuestionQuestion about Streamin CrichEditCtrl Pin
ForNow9-May-13 6:27
ForNow9-May-13 6:27 
AnswerRe: Question about Streamin CrichEditCtrl Pin
Richard MacCutchan9-May-13 7:06
mveRichard MacCutchan9-May-13 7:06 
GeneralRe: Question about Streamin CrichEditCtrl Pin
ForNow9-May-13 18:54
ForNow9-May-13 18:54 
GeneralRe: Question about Streamin CrichEditCtrl Pin
Richard MacCutchan9-May-13 20:49
mveRichard MacCutchan9-May-13 20:49 
GeneralRe: Question about Streamin CrichEditCtrl Pin
ForNow10-May-13 3:06
ForNow10-May-13 3:06 
GeneralRe: Question about Streamin CrichEditCtrl Pin
Richard MacCutchan10-May-13 3:40
mveRichard MacCutchan10-May-13 3:40 
Some other issues I noticed from reviewing the above:

  • You are mixing strcpy() and memcpy() calls. This will cause problems if you want to convert this to Unicode in the future.
  • Similarly you are using a LPBYTE pointer instead of LPTSTR. Your code is manipulating characters so all pointers should be character types, not byte.
  • In the second case clause, in both blocks you are prepending two characters to the buffer, but you are not adding two to the *pcb value to take account of this.
  • In the same place, you are using memset() to initialise the buffer with 135 spaces. This serves no purpose, but to waste time and code.

Whether fixing the above gets you closer to a solution, only time will tell.
Use the best guess

GeneralRe: Question about Streamin CrichEditCtrl Pin
ForNow10-May-13 9:33
ForNow10-May-13 9:33 
QuestionRe: Question about Streamin CrichEditCtrl Pin
Richard MacCutchan10-May-13 21:58
mveRichard MacCutchan10-May-13 21:58 
Questionhow to get self in c++ 21day book source code ? Pin
reytc8-May-13 3:13
reytc8-May-13 3:13 
AnswerRe: how to get self in c++ 21day book source code ? Pin
David Crow8-May-13 4:19
David Crow8-May-13 4:19 
AnswerRe: how to get self in c++ 21day book source code ? Pin
Richard MacCutchan8-May-13 4:57
mveRichard MacCutchan8-May-13 4:57 
AnswerRe: how to get self in c++ 21day book source code ? Pin
Malli_S9-May-13 3:27
Malli_S9-May-13 3:27 
AnswerRe: how to get self in c++ 21day book source code ? Pin
scottgp9-May-13 3:46
professionalscottgp9-May-13 3:46 
AnswerRe: how to get self in c++ 21day book source code ? Pin
Amarnath S9-May-13 21:58
professionalAmarnath S9-May-13 21:58 
Questionintialisation of charecter array Pin
Coder Block7-May-13 19:54
Coder Block7-May-13 19:54 
AnswerRe: intialisation of charecter array Pin
Richard MacCutchan7-May-13 20:45
mveRichard MacCutchan7-May-13 20:45 
GeneralRe: intialisation of charecter array Pin
Coder Block7-May-13 20:54
Coder Block7-May-13 20:54 
GeneralRe: intialisation of charecter array Pin
Richard MacCutchan7-May-13 21:56
mveRichard MacCutchan7-May-13 21:56 
AnswerRe: intialisation of charecter array Pin
rxylinux8-May-13 4:55
rxylinux8-May-13 4:55 
AnswerRe: intialisation of charecter array Pin
ThatsAlok20-May-13 23:46
ThatsAlok20-May-13 23:46 
QuestionRegarding insert query of sqlite3 database Pin
Member 78946017-May-13 19:43
Member 78946017-May-13 19:43 
QuestionRe: Regarding insert query of sqlite3 database Pin
Richard MacCutchan7-May-13 20:42
mveRichard MacCutchan7-May-13 20:42 
AnswerRe: Regarding insert query of sqlite3 database Pin
Malli_S9-May-13 3:36
Malli_S9-May-13 3:36 

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.