Click here to Skip to main content
14,979,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: GetDC() returning NULL handle in MFC Pin
Hamid_RT20-Sep-07 4:14
MemberHamid_RT20-Sep-07 4:14 
AnswerRe: GetDC() returning NULL handle in MFC Pin
Mark Salsbery20-Sep-07 6:22
MemberMark Salsbery20-Sep-07 6:22 
AnswerRe: GetDC() returning NULL handle in MFC Pin
nbugalia20-Sep-07 6:41
Membernbugalia20-Sep-07 6:41 
QuestionCustomdrawn CListCtrl Pin
josip cagalj20-Sep-07 3:09
Memberjosip cagalj20-Sep-07 3:09 
AnswerRe: Customdrawn CListCtrl Pin
Nelek20-Sep-07 4:16
protectorNelek20-Sep-07 4:16 
Questionwhy CArray::GetSize() returns INT_PTR Pin
Raj Prathap20-Sep-07 3:01
MemberRaj Prathap20-Sep-07 3:01 
AnswerRe: why CArray::GetSize() returns INT_PTR Pin
Nemanja Trifunovic20-Sep-07 3:54
MemberNemanja Trifunovic20-Sep-07 3:54 
AnswerRe: why CArray::GetSize() returns INT_PTR Pin
jhwurmbach20-Sep-07 3:56
Memberjhwurmbach20-Sep-07 3:56 
int is defined to be 32bit (not in the standard, but by common use)
CArray can theoretically hold more than 4Gig Items, at least in 64 bit Windows. That would need a 64 bit integer.

Here the INT_PTR kicks in: It defines a signed (there's also UINT_PTR) integer datatype that has at least the size to hold a pointer in the specific architecture.
So, in 64 bit Windows, it would be a 64 bit integer.

Raj Prathap wrote:
Number of elements are int/long.


Actually, I would expect the count of elements in a collection to be a unsigned value. I can't imagine a use for a negative count.







Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
George Orwell, "Keep the Aspidistra Flying", Opening words

GeneralRe: why CArray::GetSize() returns INT_PTR Pin
James R. Twine20-Sep-07 6:52
MemberJames R. Twine20-Sep-07 6:52 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
jhwurmbach20-Sep-07 7:17
Memberjhwurmbach20-Sep-07 7:17 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
James R. Twine20-Sep-07 12:25
MemberJames R. Twine20-Sep-07 12:25 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
jhwurmbach20-Sep-07 21:29
Memberjhwurmbach20-Sep-07 21:29 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
James R. Twine20-Sep-07 23:29
MemberJames R. Twine20-Sep-07 23:29 
AnswerRe: why CArray::GetSize() returns INT_PTR Pin
toxcct20-Sep-07 6:44
Membertoxcct20-Sep-07 6:44 
Questionhow to read data from hard disk using int86() function? Pin
amit.code20-Sep-07 2:43
Memberamit.code20-Sep-07 2:43 
AnswerRe: how to read data from hard disk using int86() function? Pin
jhwurmbach20-Sep-07 4:07
Memberjhwurmbach20-Sep-07 4:07 
GeneralRe: how to read data from hard disk using int86() function? Pin
Mark Salsbery20-Sep-07 6:34
MemberMark Salsbery20-Sep-07 6:34 
GeneralRe: how to read data from hard disk using int86() function? Pin
jhwurmbach20-Sep-07 6:36
Memberjhwurmbach20-Sep-07 6:36 
QuestionRe: how to read data from hard disk using int86() function? Pin
David Crow20-Sep-07 17:40
MemberDavid Crow20-Sep-07 17:40 
Questioncan anybody help me in converting a 16 bit bmp to grayscale Pin
philiptabraham20-Sep-07 1:35
Memberphiliptabraham20-Sep-07 1:35 
AnswerRe: can anybody help me in converting a 16 bit bmp to grayscale Pin
nbugalia20-Sep-07 1:56
Membernbugalia20-Sep-07 1:56 
Questionconnection between two machines in network Pin
p_20-Sep-07 1:32
Memberp_20-Sep-07 1:32 
AnswerRe: connection between two machines in network Pin
nbugalia20-Sep-07 1:42
Membernbugalia20-Sep-07 1:42 
AnswerRe: connection between two machines in network Pin
GauranG Shah20-Sep-07 1:49
MemberGauranG Shah20-Sep-07 1:49 
AnswerRe: connection between two machines in network Pin
Hamid_RT20-Sep-07 4:19
MemberHamid_RT20-Sep-07 4:19 

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.