Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to pass CMap as argument between the functions? Pin
mikert_200829-Jan-09 16:28
mikert_200829-Jan-09 16:28 
AnswerRe: How to pass CMap as argument between the functions? Pin
Naveen29-Jan-09 16:45
Naveen29-Jan-09 16:45 
AnswerRe: How to pass CMap as argument between the functions? Pin
Nishad S29-Jan-09 19:14
Nishad S29-Jan-09 19:14 
GeneralRe: How to pass CMap as argument between the functions? Pin
mikert_200829-Jan-09 19:39
mikert_200829-Jan-09 19:39 
GeneralRe: How to pass CMap as argument between the functions? Pin
Nishad S29-Jan-09 19:41
Nishad S29-Jan-09 19:41 
GeneralRe: How to pass CMap as argument between the functions? Pin
mikert_200829-Jan-09 22:11
mikert_200829-Jan-09 22:11 
GeneralRe: How to pass CMap as argument between the functions? Pin
Nishad S29-Jan-09 22:24
Nishad S29-Jan-09 22:24 
QuestionCDialog constructor incorrectly casting a UINT to a string Pin
karlan29-Jan-09 15:28
karlan29-Jan-09 15:28 
The following code block keeps giving me the following error

CBasePageDlg(UINT pageId, CWnd* pParent, const UINT prevPage = -1, const UINT nextPage = -1)
	:	CDialog(pageId, pParent), m_pageId(pageId),
		m_prevPage(prevPage), m_nextPage(nextPage)
	{}


error C2664: 'CDialog::CDialog(LPCTSTR,CWnd *)' : cannot convert parameter 1 from 'int' to 'LPCTSTR'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

But I cannot for the life of me figure out why it is not using the UINT version of the constructor.

even changing the code to be...
CDialog((UINT)pageId, pParent)

or
CDialog(UINT(42), pParent)


... gives the same error. Any ideas or suggestions?
GeneralRe: CDialog constructor incorrectly casting a UINT to a string Pin
Michael Dunn29-Jan-09 15:47
sitebuilderMichael Dunn29-Jan-09 15:47 
GeneralRe: CDialog constructor incorrectly casting a UINT to a string Pin
karlan29-Jan-09 16:09
karlan29-Jan-09 16:09 
AnswerRe: CDialog constructor incorrectly casting a UINT to a string Pin
Iain Clarke, Warrior Programmer30-Jan-09 0:21
Iain Clarke, Warrior Programmer30-Jan-09 0:21 
AnswerRe: CDialog constructor incorrectly casting a UINT to a string Pin
JudyL_MD30-Jan-09 3:54
JudyL_MD30-Jan-09 3:54 
GeneralRe: CDialog constructor incorrectly casting a UINT to a string Pin
karlan1-Feb-09 15:47
karlan1-Feb-09 15:47 
QuestionNeed help to improve Inpage MFC software ! [modified] Pin
M A Gulzar29-Jan-09 13:42
M A Gulzar29-Jan-09 13:42 
AnswerRe: Need help to improve Inpage MFC software ! Pin
Garth J Lancaster29-Jan-09 15:56
professionalGarth J Lancaster29-Jan-09 15:56 
AnswerRe: Need help to improve Inpage MFC software ! Pin
Iain Clarke, Warrior Programmer30-Jan-09 0:06
Iain Clarke, Warrior Programmer30-Jan-09 0:06 
GeneralRe: Need help to improve Inpage MFC software ! Pin
M A Gulzar30-Jan-09 0:36
M A Gulzar30-Jan-09 0:36 
QuestionSyntax Problem- Can't initialize arrays with array[] = { , } syntax ?? Pin
Mike the Red29-Jan-09 13:16
Mike the Red29-Jan-09 13:16 
AnswerRe: Syntax Problem- Can't initialize arrays with array[] = { , } syntax ?? Pin
Jonathan Davies29-Jan-09 13:32
Jonathan Davies29-Jan-09 13:32 
GeneralRe: Syntax Problem- Can't initialize arrays with array[] = { , } syntax ?? Pin
David Crow30-Jan-09 4:29
David Crow30-Jan-09 4:29 
QuestionDirectSound in a Dialog Based Application Pin
calducciano29-Jan-09 9:36
calducciano29-Jan-09 9:36 
AnswerRe: DirectSound in a Dialog Based Application Pin
Stuart Dootson29-Jan-09 12:39
professionalStuart Dootson29-Jan-09 12:39 
QuestionDetecting COM ports Pin
RomTibi29-Jan-09 8:04
RomTibi29-Jan-09 8:04 
AnswerRe: Detecting COM ports Pin
Jonathan Davies29-Jan-09 8:16
Jonathan Davies29-Jan-09 8:16 
GeneralRe: Detecting COM ports Pin
RomTibi30-Jan-09 6:44
RomTibi30-Jan-09 6:44 

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.