Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CcheckBoxList issue Pin
p_196013-Mar-09 3:55
p_196013-Mar-09 3:55 
GeneralRe: CcheckBoxList issue Pin
CPallini13-Mar-09 4:08
mveCPallini13-Mar-09 4:08 
GeneralRe: CcheckBoxList issue Pin
p_196013-Mar-09 4:12
p_196013-Mar-09 4:12 
GeneralRe: CcheckBoxList issue Pin
CPallini13-Mar-09 4:29
mveCPallini13-Mar-09 4:29 
QuestionCRichEditView: Word Break/ Spearator problem Pin
Aruna Jayaraman13-Mar-09 0:57
Aruna Jayaraman13-Mar-09 0:57 
AnswerRe: CRichEditView: Word Break/ Spearator problem Pin
_AnsHUMAN_ 13-Mar-09 1:36
_AnsHUMAN_ 13-Mar-09 1:36 
GeneralRe: CRichEditView: Word Break/ Spearator problem Pin
Aruna Jayaraman13-Mar-09 1:46
Aruna Jayaraman13-Mar-09 1:46 
QuestionError creating objects using constructor with arguments Pin
NeoAks00713-Mar-09 0:54
NeoAks00713-Mar-09 0:54 
Hi there,
I am facing a very strange problem in creating objects (by calling constructor with arguments) of one class inside another class. I have a situation where I want to create a object of class firstClass inside class secClass using constructor with arguments of firstClass e.g.:
class firstClass{
   string abc;
public:      
      firstClass(string label):abc(label){}    //Want to use this constructor in secClass
};

class secClass{
public:
   firstClass obj1("abc");   //Error C2059: syntax error : 'string' ->> in Visual C++ 2008
   secClass(){}
};

I think the compiler is facing ambiguity regarding the declaration of object obj1 with a function prototype definition. Similar case arises with templates but they can be resolved using typename keyword. Since typename cannot be used outside template declaration, is there any way to achieve instantiation of obj1 ?? Confused | :confused: Plz help!!!
AnswerRe: Error creating objects using constructor with arguments Pin
Cedric Moonen13-Mar-09 1:02
Cedric Moonen13-Mar-09 1:02 
GeneralRe: Error creating objects using constructor with arguments Pin
NeoAks00713-Mar-09 1:10
NeoAks00713-Mar-09 1:10 
QuestionHow to replace string in _bstr_t Pin
gothic_coder13-Mar-09 0:54
gothic_coder13-Mar-09 0:54 
AnswerRe: How to replace string in _bstr_t Pin
Ash_VCPP13-Mar-09 1:23
Ash_VCPP13-Mar-09 1:23 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 1:50
gothic_coder13-Mar-09 1:50 
GeneralRe: How to replace string in _bstr_t Pin
Ash_VCPP13-Mar-09 1:53
Ash_VCPP13-Mar-09 1:53 
GeneralRe: How to replace string in _bstr_t Pin
«_Superman_»13-Mar-09 1:53
professional«_Superman_»13-Mar-09 1:53 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 2:35
gothic_coder13-Mar-09 2:35 
GeneralRe: How to replace string in _bstr_t Pin
Ash_VCPP13-Mar-09 2:43
Ash_VCPP13-Mar-09 2:43 
AnswerRe: How to replace string in _bstr_t Pin
Jonathan Davies13-Mar-09 1:42
Jonathan Davies13-Mar-09 1:42 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 3:59
gothic_coder13-Mar-09 3:59 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 4:02
gothic_coder13-Mar-09 4:02 
GeneralRe: How to replace string in _bstr_t Pin
Jonathan Davies13-Mar-09 4:21
Jonathan Davies13-Mar-09 4:21 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 4:39
gothic_coder13-Mar-09 4:39 
GeneralRe: How to replace string in _bstr_t Pin
gothic_coder13-Mar-09 5:08
gothic_coder13-Mar-09 5:08 
QuestionError in compiling in release mode in VC++ Pin
kr_ash13-Mar-09 0:52
kr_ash13-Mar-09 0:52 
AnswerRe: Error in compiling in release mode in VC++ Pin
Jonathan Davies13-Mar-09 0:57
Jonathan Davies13-Mar-09 0:57 

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.