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

C / C++ / MFC

 
GeneralRe: Templates Pin
Astricks25-Dec-06 19:04
Astricks25-Dec-06 19:04 
GeneralRe: Thanks, But another question, Pin
Astricks26-Dec-06 2:27
Astricks26-Dec-06 2:27 
GeneralRe: Thanks, But another question, Pin
peterchen26-Dec-06 2:38
peterchen26-Dec-06 2:38 
GeneralRe: Thanks, But another question, Pin
Astricks26-Dec-06 2:46
Astricks26-Dec-06 2:46 
GeneralRe: Thanks, But another question, Pin
peterchen26-Dec-06 3:15
peterchen26-Dec-06 3:15 
GeneralRe: Thanks, But another question, Pin
Astricks26-Dec-06 5:27
Astricks26-Dec-06 5:27 
QuestionWeird C4244 warning message Pin
Cristian Amarie25-Dec-06 5:24
Cristian Amarie25-Dec-06 5:24 
AnswerRe: Weird C4244 warning message Pin
Mark Salsbery25-Dec-06 6:32
Mark Salsbery25-Dec-06 6:32 
I'm not sure about the error message, but...

Cristian Amarie wrote:
but this also complains about the conversion of LONG_PTR to LONG, as if LONG_PTR is 64-bit


A LONG_PTR IS a 64-bit value in a 64-bit build. That's the whole reason for the newer type. It's
a LONG but large enough to hold a pointer when pointers are 32-bit or 64-bit.

I'm not sure what a "LONG __w64" is, but this line...

SetWindowLongPtr(hdlg, DLGWINDOWEXTRA, (LONG __w64)(wcDlgInfo->m_wcDlgProc));

...won't work on a 32-bit build because pointers are 32-bit therefore you need to pass a 32-bit
value. Sure, you can cast a 64-bit but it's going to be truncated to 32-bits.

Mark
GeneralRe: Weird C4244 warning message Pin
Cristian Amarie25-Dec-06 7:16
Cristian Amarie25-Dec-06 7:16 
GeneralRe: Weird C4244 warning message Pin
Mark Salsbery25-Dec-06 10:08
Mark Salsbery25-Dec-06 10:08 
GeneralRe: Weird C4244 warning message Pin
Cristian Amarie25-Dec-06 19:39
Cristian Amarie25-Dec-06 19:39 
GeneralRe: Weird C4244 warning message Pin
Mark Salsbery26-Dec-06 5:18
Mark Salsbery26-Dec-06 5:18 
GeneralRe: Weird C4244 warning message Pin
Cristian Amarie26-Dec-06 6:12
Cristian Amarie26-Dec-06 6:12 
GeneralRe: Weird C4244 warning message Pin
prasad_som25-Dec-06 22:06
prasad_som25-Dec-06 22:06 
QuestionSubtracting times - need a result including milliseconds Pin
SWDevil25-Dec-06 5:11
SWDevil25-Dec-06 5:11 
AnswerRe: Subtracting times - need a result including milliseconds Pin
prasad_som25-Dec-06 19:41
prasad_som25-Dec-06 19:41 
QuestionMax. value of int type variable and unsigned int type variable Pin
cy163@hotmail.com25-Dec-06 3:31
cy163@hotmail.com25-Dec-06 3:31 
AnswerRe: Max. value of int type variable and unsigned int type variable Pin
Mark Salsbery25-Dec-06 6:41
Mark Salsbery25-Dec-06 6:41 
QuestionTick count Pin
includeh1025-Dec-06 2:17
includeh1025-Dec-06 2:17 
QuestionRe: Tick count Pin
David Crow25-Dec-06 5:08
David Crow25-Dec-06 5:08 
AnswerRe: Tick count Pin
Cristian Amarie25-Dec-06 5:27
Cristian Amarie25-Dec-06 5:27 
AnswerRe: Tick count Pin
Mark Salsbery25-Dec-06 6:46
Mark Salsbery25-Dec-06 6:46 
GeneralRe: Tick count Pin
includeh1025-Dec-06 7:20
includeh1025-Dec-06 7:20 
QuestionA Problem with CStdioFile Pin
yaros2125-Dec-06 0:10
yaros2125-Dec-06 0:10 
QuestionRe: A Problem with CStdioFile Pin
David Crow25-Dec-06 5:10
David Crow25-Dec-06 5:10 

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.