Click here to Skip to main content
16,014,633 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to change the background color of a checkbox in a list control? Pin
tataxin26-May-08 19:32
tataxin26-May-08 19:32 
QuestionDumb Question Pin
bs197721-May-08 14:21
bs197721-May-08 14:21 
QuestionPut array of characters into an array member of a class Pin
Samjiman21-May-08 12:35
Samjiman21-May-08 12:35 
AnswerRe: Put array of characters into an array member of a class Pin
David Crow21-May-08 16:00
David Crow21-May-08 16:00 
GeneralRe: Put array of characters into an array member of a class Pin
Samjiman21-May-08 23:39
Samjiman21-May-08 23:39 
AnswerRe: Put array of characters into an array member of a class Pin
Rajkumar R22-May-08 0:12
Rajkumar R22-May-08 0:12 
GeneralRe: Put array of characters into an array member of a class Pin
Samjiman22-May-08 0:40
Samjiman22-May-08 0:40 
GeneralRe: Put array of characters into an array member of a class Pin
Rajkumar R22-May-08 0:56
Rajkumar R22-May-08 0:56 
Samjiman wrote:
strcpy(&val[i][50],

where is this "i" declared.


Samjiman wrote:
The left most index should be the index to store the string and the right index is the maximum characters (including null char), right?

strcpy() first parameter is the destination buffers start address, if you specify like "&val[i][50]" the address is ith row 50th element, it starts copying the string from v to end of the row, you need to set the start address as &val[i][0] beginning of the ith row. strcpy doesnot bother about the size of first parameter it copies all the element from second parameter upto the null terminator charater to the buffer whose start address is specified in first parameter. These are basics you may need to learn from C books about pointers, arrays
GeneralRe: Put array of characters into an array member of a class Pin
Samjiman22-May-08 5:35
Samjiman22-May-08 5:35 
GeneralRe: Put array of characters into an array member of a class Pin
Samjiman22-May-08 0:13
Samjiman22-May-08 0:13 
QuestionFind control on dialog Pin
Giorgi Dalakishvili21-May-08 10:50
mentorGiorgi Dalakishvili21-May-08 10:50 
QuestionRe: Find control on dialog Pin
David Crow21-May-08 11:06
David Crow21-May-08 11:06 
AnswerRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 11:18
mentorGiorgi Dalakishvili21-May-08 11:18 
AnswerRe: Find control on dialog Pin
Force Code21-May-08 11:21
Force Code21-May-08 11:21 
GeneralRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 11:25
mentorGiorgi Dalakishvili21-May-08 11:25 
GeneralRe: Find control on dialog Pin
Force Code21-May-08 11:37
Force Code21-May-08 11:37 
GeneralRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 11:50
mentorGiorgi Dalakishvili21-May-08 11:50 
GeneralRe: Find control on dialog Pin
Force Code21-May-08 12:14
Force Code21-May-08 12:14 
GeneralRe: Find control on dialog Pin
Rajesh R Subramanian21-May-08 20:21
professionalRajesh R Subramanian21-May-08 20:21 
AnswerRe: Find control on dialog Pin
Rajesh R Subramanian21-May-08 19:51
professionalRajesh R Subramanian21-May-08 19:51 
GeneralRe: Find control on dialog Pin
Giorgi Dalakishvili21-May-08 19:58
mentorGiorgi Dalakishvili21-May-08 19:58 
Questionmodifying an REOBJECT Pin
Force Code21-May-08 10:00
Force Code21-May-08 10:00 
QuestionINCONSISTENCY IN VC++ Pin
edu.net21-May-08 9:35
edu.net21-May-08 9:35 
GeneralRe: INCONSISTENCY IN VC++ Pin
JudyL_MD21-May-08 10:02
JudyL_MD21-May-08 10:02 
GeneralRe: INCONSISTENCY IN VC++ Pin
edu.net21-May-08 10:40
edu.net21-May-08 10:40 

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.