Click here to Skip to main content
15,908,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: member variable initialization Pin
George L. Jackson18-Dec-07 4:34
George L. Jackson18-Dec-07 4:34 
GeneralRe: member variable initialization Pin
Nelek18-Dec-07 23:37
protectorNelek18-Dec-07 23:37 
GeneralRe: member variable initialization Pin
eraccn18-Dec-07 4:43
eraccn18-Dec-07 4:43 
QuestionHow to make the font bold in the header of a ListControl Pin
Vikas_12318-Dec-07 2:04
Vikas_12318-Dec-07 2:04 
Generalnamespace problem Pin
prithaa18-Dec-07 1:59
prithaa18-Dec-07 1:59 
QuestionRe: namespace problem Pin
CPallini18-Dec-07 3:40
mveCPallini18-Dec-07 3:40 
GeneralRe: namespace problem Pin
jhwurmbach18-Dec-07 4:33
jhwurmbach18-Dec-07 4:33 
GeneralRe: namespace problem Pin
Member 75496018-Dec-07 8:11
Member 75496018-Dec-07 8:11 
Make sure you understand what the various message map macros expand to.

The message map is a static member variable of the class. If you wrap
the dialog class declaration in a namespace then wrap the dialog
implementation in that namespace.

Move the message map table definitions into the same namespace the
dialog class is declared in.

// header.h

namespace f {

class CAboutDlg : public CDialog
{
protected:
	//{{AFX_MSG(CAboutDlg)
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

}	// namespace f


// source.cpp

namespace f {

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
	//{{AFX_MSG_MAP(CAboutDlg)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void CAboutDlg::OnButton1() 
{
}

}	// namespace f

QuestionHow to create a Unique numeric ID Pin
SWDevil18-Dec-07 1:52
SWDevil18-Dec-07 1:52 
AnswerRe: How to create a Unique numeric ID Pin
CPallini18-Dec-07 2:14
mveCPallini18-Dec-07 2:14 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 2:17
SWDevil18-Dec-07 2:17 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 2:23
SWDevil18-Dec-07 2:23 
GeneralRe: How to create a Unique numeric ID Pin
CPallini18-Dec-07 2:33
mveCPallini18-Dec-07 2:33 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 2:42
SWDevil18-Dec-07 2:42 
AnswerRe: How to create a Unique numeric ID Pin
CPallini18-Dec-07 2:45
mveCPallini18-Dec-07 2:45 
AnswerRe: How to create a Unique numeric ID Pin
jhwurmbach18-Dec-07 4:42
jhwurmbach18-Dec-07 4:42 
GeneralRe: How to create a Unique numeric ID Pin
SWDevil18-Dec-07 6:05
SWDevil18-Dec-07 6:05 
GeneralRe: How to create a Unique numeric ID Pin
jhwurmbach18-Dec-07 6:22
jhwurmbach18-Dec-07 6:22 
General_CRT_SECURE_NO_WARNINGS Pin
Anthony Appleyard18-Dec-07 0:26
Anthony Appleyard18-Dec-07 0:26 
GeneralRe: _CRT_SECURE_NO_WARNINGS Pin
CPallini18-Dec-07 0:40
mveCPallini18-Dec-07 0:40 
GeneralRe: _CRT_SECURE_NO_WARNINGS Pin
Maxwell Chen18-Dec-07 1:20
Maxwell Chen18-Dec-07 1:20 
GeneralRe: _CRT_SECURE_NO_WARNINGS Pin
Mark Salsbery18-Dec-07 6:29
Mark Salsbery18-Dec-07 6:29 
GeneralDatabase timeout!!! Pin
__yash__18-Dec-07 0:17
professional__yash__18-Dec-07 0:17 
JokeRe: Database timeout!!! Pin
Nelek18-Dec-07 2:04
protectorNelek18-Dec-07 2:04 
GeneralRe: Database timeout!!! Pin
David Crow18-Dec-07 3:00
David Crow18-Dec-07 3:00 

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.