Click here to Skip to main content
15,909,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to change the background color of a checkbox in a list control? Pin
Hamid_RT21-May-08 18:02
Hamid_RT21-May-08 18:02 
GeneralRe: how to change the background color of a checkbox in a list control? Pin
tataxin21-May-08 20:32
tataxin21-May-08 20:32 
GeneralRe: how to change the background color of a checkbox in a list control? Pin
tataxin22-May-08 3:12
tataxin22-May-08 3:12 
GeneralRe: how to change the background color of a checkbox in a list control? Pin
Hamid_RT22-May-08 22:48
Hamid_RT22-May-08 22:48 
GeneralRe: how to change the background color of a checkbox in a list control? Pin
tataxin23-May-08 2:40
tataxin23-May-08 2:40 
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 
Hello.

I'm working on a XPCOM component (so I can't just use std::string) and I need to pass an array of characters into an array which is a member of a class.

(Please ignore that this code is out of context)
class MyClass {
    char val[100][50];
public:
    void drop(char v) { val[0] = v; }
};
 
MyClass Obj;
 
void SomeFunction() {
    char myString[] = "Hello";
    Obj.drop(myString);
}


I get this error: cannot convert parameter 1 from 'char [7]' to 'char'
All I want to do is pass myString to my member function which I want to store the value in the first index of the member array.

Any help would be greatly appreciated, thanks.
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 
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 

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.