Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to add a custom item to the right-click menu of Edit control? Pin
samfromcn27-Apr-06 18:58
samfromcn27-Apr-06 18:58 
AnswerRe: how to add a custom item to the right-click menu of Edit control? Pin
Nibu babu thomas27-Apr-06 19:11
Nibu babu thomas27-Apr-06 19:11 
QuestionBrowse for subfolder Pin
anjita27-Apr-06 18:07
anjita27-Apr-06 18:07 
AnswerRe: Browse for subfolder Pin
Nishad S27-Apr-06 18:48
Nishad S27-Apr-06 18:48 
QuestionOPC connection Pin
Anu_Bala27-Apr-06 17:48
Anu_Bala27-Apr-06 17:48 
AnswerRe: OPC connection Pin
QuickDeveloper27-Apr-06 18:09
QuickDeveloper27-Apr-06 18:09 
QuestionRe: OPC connection Pin
David Crow28-Apr-06 2:48
David Crow28-Apr-06 2:48 
QuestionC++ syntax question Pin
includeh1027-Apr-06 17:45
includeh1027-Apr-06 17:45 
class NNN
{
public:
	int ia[100];
};

NNN nnn[]=
{
	{10},
	{20},
};


Above can be compiled properly.
but, if add construct to the class
class NNN
{
public:
	NNN()
	{
		memset(&ia,100,sizeof(ia));
	}
	int ia[100];
};

compile error appears as:
error C2440: 'initializing' : cannot convert from 'const int' to 'class NNN'

how to solve the problem to let the class contain constructor to initialize data?
AnswerRe: C++ syntax question Pin
Aqueel27-Apr-06 17:51
Aqueel27-Apr-06 17:51 
GeneralRe: C++ syntax question Pin
includeh1027-Apr-06 19:36
includeh1027-Apr-06 19:36 
GeneralRe: C++ syntax question Pin
Aqueel27-Apr-06 21:41
Aqueel27-Apr-06 21:41 
AnswerRe: C++ syntax question Pin
Nishad S27-Apr-06 19:09
Nishad S27-Apr-06 19:09 
GeneralRe: C++ syntax question Pin
includeh1027-Apr-06 19:37
includeh1027-Apr-06 19:37 
GeneralRe: C++ syntax question Pin
toxcct27-Apr-06 22:28
toxcct27-Apr-06 22:28 
AnswerRe: C++ syntax question Pin
Michael Dunn27-Apr-06 19:46
sitebuilderMichael Dunn27-Apr-06 19:46 
GeneralRe: C++ syntax question Pin
Nishad S27-Apr-06 20:15
Nishad S27-Apr-06 20:15 
GeneralRe: C++ syntax question Pin
Michael Dunn27-Apr-06 20:37
sitebuilderMichael Dunn27-Apr-06 20:37 
AnswerRe: C++ syntax question [Edited] Pin
Maxwell Chen27-Apr-06 20:14
Maxwell Chen27-Apr-06 20:14 
QuestionIs it code optimization problem ? Pin
dharani27-Apr-06 16:28
dharani27-Apr-06 16:28 
AnswerRe: Is it code optimization problem ? Pin
Renjith Ramachandran27-Apr-06 20:04
Renjith Ramachandran27-Apr-06 20:04 
QuestionHow to drag and drop CListCtrl header? Pin
Ajax9527-Apr-06 14:07
Ajax9527-Apr-06 14:07 
AnswerRe: How to drag and drop CListCtrl header? Pin
Naveen27-Apr-06 17:30
Naveen27-Apr-06 17:30 
QuestionWhy does VC++ 2005 produce much larger EXE's than VC++ 2003 or VC++ 6.0 ? Pin
Defenestration27-Apr-06 13:45
Defenestration27-Apr-06 13:45 
AnswerRe: Why does VC++ 2005 produce much larger EXE's than VC++ 2003 or VC++ 6.0 ? Pin
Michael Dunn27-Apr-06 19:49
sitebuilderMichael Dunn27-Apr-06 19:49 
GeneralRe: Why does VC++ 2005 produce much larger EXE's than VC++ 2003 or VC++ 6.0 ? Pin
Defenestration2-May-06 16:12
Defenestration2-May-06 16:12 

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.