Click here to Skip to main content
15,887,430 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to set the ListCtrl's item color ? Pin
Rajesh R Subramanian21-Mar-10 18:44
professionalRajesh R Subramanian21-Mar-10 18:44 
GeneralRe: How to set the ListCtrl's item color ? Pin
wangningyu21-Mar-10 18:59
wangningyu21-Mar-10 18:59 
AnswerRe: How to set the ListCtrl's item color ? Pin
Mohan Ramachandra21-Mar-10 18:49
Mohan Ramachandra21-Mar-10 18:49 
GeneralRe: How to set the ListCtrl's item color ? Pin
wangningyu21-Mar-10 18:59
wangningyu21-Mar-10 18:59 
AnswerRe: How to set the ListCtrl's item color ? Pin
Shivanand Gupta22-Mar-10 0:20
Shivanand Gupta22-Mar-10 0:20 
QuestionReportEvent could not find included messages in exe Pin
SvLeshy21-Mar-10 13:51
SvLeshy21-Mar-10 13:51 
QuestionWhat is MAX_INT for? Pin
Mohamed_Khalil21-Mar-10 7:31
Mohamed_Khalil21-Mar-10 7:31 
AnswerRe: What is MAX_INT (INT_MAX) for? Pin
Joe Woodbury21-Mar-10 7:41
professionalJoe Woodbury21-Mar-10 7:41 
(BTW, it's INT_MAX)

To know what the maximum value of an int is, which can vary from platform to platform. Traditionally, an int was the optimal size of data that the CPU could deal with (either a register size or what was pushed onto the stack.) So, in the 8086 world, an int was 16-bits long. (With some CPUs an int could be 8-bits long, though I've never personally seen that.)

Typically, an int is now considered to be 32-bits long, even on 64-bit systems. (Some operating systems consider long to be 32-bits, others 64-bits.)

I often use INT_MAX for the default value of a length parameter with string parsing functions where I am to parse n characters or until the terminating zero, whichever comes first.
AnswerRe: What is MAX_INT for? Pin
Garth J Lancaster21-Mar-10 11:27
professionalGarth J Lancaster21-Mar-10 11:27 
AnswerRe: What is MAX_INT for? Pin
Adam Roderick J21-Mar-10 18:57
Adam Roderick J21-Mar-10 18:57 
GeneralRe: What is MAX_INT for? Pin
Vaclav_22-Mar-10 3:48
Vaclav_22-Mar-10 3:48 
GeneralRe: What is MAX_INT for? Pin
Joe Woodbury22-Mar-10 6:30
professionalJoe Woodbury22-Mar-10 6:30 
GeneralRe: What is MAX_INT for? Pin
Adam Roderick J22-Mar-10 7:08
Adam Roderick J22-Mar-10 7:08 
GeneralRe: What is MAX_INT for? Pin
Joe Woodbury22-Mar-10 7:16
professionalJoe Woodbury22-Mar-10 7:16 
GeneralRe: What is MAX_INT for? Pin
Adam Roderick J23-Mar-10 5:38
Adam Roderick J23-Mar-10 5:38 
QuestionOwner drawn ListBox problem Pin
Manmohan2921-Mar-10 5:25
Manmohan2921-Mar-10 5:25 
AnswerRe: Owner drawn ListBox problem Pin
«_Superman_»21-Mar-10 6:40
professional«_Superman_»21-Mar-10 6:40 
GeneralRe: Owner drawn ListBox problem Pin
Manmohan2921-Mar-10 7:04
Manmohan2921-Mar-10 7:04 
GeneralRe: Owner drawn ListBox problem Pin
«_Superman_»21-Mar-10 7:10
professional«_Superman_»21-Mar-10 7:10 
GeneralRe: Owner drawn ListBox problem Pin
Manmohan2921-Mar-10 7:27
Manmohan2921-Mar-10 7:27 
GeneralRe: Owner drawn ListBox problem Pin
Manmohan2921-Mar-10 8:06
Manmohan2921-Mar-10 8:06 
AnswerRe: Owner drawn ListBox problem Pin
Luc Pattyn21-Mar-10 11:18
sitebuilderLuc Pattyn21-Mar-10 11:18 
QuestionOpenGL Pin
MrMcIntyre21-Mar-10 4:45
MrMcIntyre21-Mar-10 4:45 
AnswerRe: OpenGL Pin
Richard MacCutchan21-Mar-10 6:09
mveRichard MacCutchan21-Mar-10 6:09 
QuestionGetAsyncKeyState() and GetKeyState() [Solved] Pin
Rozis21-Mar-10 2:05
Rozis21-Mar-10 2:05 

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.