Click here to Skip to main content
15,914,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFileDialog Pin
Nyarlatotep29-Nov-06 21:20
Nyarlatotep29-Nov-06 21:20 
GeneralRe: CFileDialog Pin
syddy07064-Feb-09 1:15
syddy07064-Feb-09 1:15 
GeneralRe: CFileDialog Pin
Nyarlatotep4-Feb-09 4:10
Nyarlatotep4-Feb-09 4:10 
Questionread an excel file Pin
prithaa27-Nov-06 5:59
prithaa27-Nov-06 5:59 
AnswerRe: read an excel file Pin
Nyarlatotep27-Nov-06 6:03
Nyarlatotep27-Nov-06 6:03 
AnswerRe: read an excel file Pin
Eddie_NG27-Nov-06 6:26
Eddie_NG27-Nov-06 6:26 
AnswerRe: read an excel file Pin
David Crow27-Nov-06 7:34
David Crow27-Nov-06 7:34 
Questionstatic cast conversion. Pin
Chris Meech27-Nov-06 5:27
Chris Meech27-Nov-06 5:27 
I have the following macro in a message map that compiles and works just fine under version 6.
ON_NOTIFY(DTN_DATETIMECHANGE, IDC_CALENDAR, OnDateTimeChangeNotify)
But when I compile the source under vs 2005, I get the following error message,
error C2440: 'static_cast' : cannot convert from 'void (__thiscall CurrencyPrices::* )(LPNMDATETIMECHANGE,LRESULT *)' to 'void (__thiscall CCmdTarget::* )(NMHDR *,LRESULT *)'
CurrencyPrices is the dialog class that implements this message map and one of the controls on the dialog is a DateTime control. From the error message, it's just not clear to me what I have to change. I'm pretty sure that the problem relates to casting from LPNDATETIMECHANGE to a NMHDR*, but I'm not sure. Thanks.

Chris Meech
I am Canadian. [heard in a local bar]
I agree with you that my argument is useless. [Red Stateler]
Hey, I am part of a special bread, we are called smart people [Captain See Sharp]
The zen of the soapbox is hard to attain...[Jörgen Sigvardsson]
I wish I could remember what it was like to only have a short term memory.[David Kentley]

QuestionRe: static cast conversion. Pin
Maximilien27-Nov-06 5:33
Maximilien27-Nov-06 5:33 
AnswerRe: static cast conversion. Pin
Chris Meech27-Nov-06 5:43
Chris Meech27-Nov-06 5:43 
QuestionBSTR Conversion Pin
f--hhcch27-Nov-06 5:18
f--hhcch27-Nov-06 5:18 
AnswerRe: BSTR Conversion Pin
Eddie_NG27-Nov-06 6:35
Eddie_NG27-Nov-06 6:35 
QuestionStrange behavior with MessageBox() [modified] Pin
Makakuin27-Nov-06 5:13
Makakuin27-Nov-06 5:13 
AnswerRe: Strange behavior with MessageBox() Pin
Tony Hill27-Nov-06 5:44
professionalTony Hill27-Nov-06 5:44 
GeneralRe: Strange behavior with MessageBox() Pin
Makakuin27-Nov-06 5:53
Makakuin27-Nov-06 5:53 
QuestionChanging RichEdit font Pin
jsumm27-Nov-06 4:58
jsumm27-Nov-06 4:58 
GeneralNo ideas??? Pin
jsumm27-Nov-06 9:55
jsumm27-Nov-06 9:55 
AnswerRe: Changing RichEdit font Pin
Scott Holt27-Nov-06 14:40
Scott Holt27-Nov-06 14:40 
Questionhow to use stl? Pin
wuren873427-Nov-06 3:39
wuren873427-Nov-06 3:39 
AnswerRe: how to use stl? Pin
spielehelfer27-Nov-06 3:43
spielehelfer27-Nov-06 3:43 
GeneralRe: how to use stl? Pin
David Crow27-Nov-06 3:53
David Crow27-Nov-06 3:53 
GeneralRe: how to use stl? Pin
Stephen Hewitt27-Nov-06 13:13
Stephen Hewitt27-Nov-06 13:13 
AnswerRe: how to use stl? Pin
toxcct27-Nov-06 3:55
toxcct27-Nov-06 3:55 
GeneralRe: how to use stl? Pin
BlitzPackage27-Nov-06 6:21
BlitzPackage27-Nov-06 6:21 
GeneralRe: how to use stl? Pin
Stephen Hewitt27-Nov-06 13:12
Stephen Hewitt27-Nov-06 13: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.