Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCustomdrawn CListCtrl Pin
josip cagalj20-Sep-07 3:09
josip 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
Raj Prathap20-Sep-07 3:01 
AnswerRe: why CArray::GetSize() returns INT_PTR Pin
Nemanja Trifunovic20-Sep-07 3:54
Nemanja Trifunovic20-Sep-07 3:54 
AnswerRe: why CArray::GetSize() returns INT_PTR Pin
jhwurmbach20-Sep-07 3:56
jhwurmbach20-Sep-07 3:56 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
James R. Twine20-Sep-07 6:52
James R. Twine20-Sep-07 6:52 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
jhwurmbach20-Sep-07 7:17
jhwurmbach20-Sep-07 7:17 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
James R. Twine20-Sep-07 12:25
James R. Twine20-Sep-07 12:25 
   As I said, a poor implementaiton1 Smile | :)

jhwurmbach wrote:
Asking for the number of elements can only return a number. There is no possible error case.


   That actually depends on how the collection is being accessed.  For example, suppose you have an object that warps a simple array.  The object could be in a state where it is not yet associated with, or has been detached from, an array.  Asking the object for the number of elements should return... What?

   Returning zero means that the collection has a size of zero, not that there is no collection.  Again, a poor implementation, but just because you cannot think of a good reason for doing something does not mean that others cannot think of many bad reasons for doing it! Smile | :)

   Peace!


-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: why CArray::GetSize() returns INT_PTR Pin
jhwurmbach20-Sep-07 21:29
jhwurmbach20-Sep-07 21:29 
GeneralRe: why CArray::GetSize() returns INT_PTR Pin
James R. Twine20-Sep-07 23:29
James R. Twine20-Sep-07 23:29 
AnswerRe: why CArray::GetSize() returns INT_PTR Pin
toxcct20-Sep-07 6:44
toxcct20-Sep-07 6:44 
Questionhow to read data from hard disk using int86() function? Pin
amit.code20-Sep-07 2:43
amit.code20-Sep-07 2:43 
AnswerRe: how to read data from hard disk using int86() function? Pin
jhwurmbach20-Sep-07 4:07
jhwurmbach20-Sep-07 4:07 
GeneralRe: how to read data from hard disk using int86() function? Pin
Mark Salsbery20-Sep-07 6:34
Mark Salsbery20-Sep-07 6:34 
GeneralRe: how to read data from hard disk using int86() function? Pin
jhwurmbach20-Sep-07 6:36
jhwurmbach20-Sep-07 6:36 
QuestionRe: how to read data from hard disk using int86() function? Pin
David Crow20-Sep-07 17:40
David Crow20-Sep-07 17:40 
Questioncan anybody help me in converting a 16 bit bmp to grayscale Pin
philiptabraham20-Sep-07 1:35
philiptabraham20-Sep-07 1:35 
AnswerRe: can anybody help me in converting a 16 bit bmp to grayscale Pin
nbugalia20-Sep-07 1:56
nbugalia20-Sep-07 1:56 
Questionconnection between two machines in network Pin
p_20-Sep-07 1:32
p_20-Sep-07 1:32 
AnswerRe: connection between two machines in network Pin
nbugalia20-Sep-07 1:42
nbugalia20-Sep-07 1:42 
AnswerRe: connection between two machines in network Pin
GauranG Shah20-Sep-07 1:49
GauranG Shah20-Sep-07 1:49 
AnswerRe: connection between two machines in network Pin
Hamid_RT20-Sep-07 4:19
Hamid_RT20-Sep-07 4:19 
Questiondirectx in mfc Pin
saisp20-Sep-07 1:31
saisp20-Sep-07 1:31 
Questionwant to add any number of images of any type in a dialog box using mfc only Pin
Dhiraj kumar Saini20-Sep-07 1:14
Dhiraj kumar Saini20-Sep-07 1:14 
AnswerRe: want to add any number of images of any type in a dialog box using mfc only Pin
jhwurmbach20-Sep-07 2:43
jhwurmbach20-Sep-07 2:43 

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.