0. No elements would be retrievable.
Why sould the "GetSize"-function answer a question other than that "How many elements are in the collection?". There are no elements to be retrieved, so the answer is [zero].
The number of elements that are in a collection is not the same as the number of elements that are retrievable/available. GetSize() vs. GetAvailable(). The lot at the Aston Martin dealership contain 87 cars, but zero of them are available to me!
This is becoming a pointless argument - you will recall in my OP that I mention the words "poor design". And I have seen lots of poor designs and heard many ways of defending/rationalizing them.
-=- 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
I think that you need to create a client/server type application for that.
The server will reside on other network machine and will listen to some port.
The client will send data to the port to communicate with server.
I want to use a picture holder which is capable of holding any number of pictures and of any type. As the number of pictures keep on increasing it has a scroll bar. and as pictures are deleted the srollbar gets removed.
What i mean is that is should be dynamically increasing or decreasing.
I want this thing to be done as i am trying to make a desktop application as webshot.
Remember I am using MFC, VC++ 6.0 and not ATL so cannot use CImage class.
The CListCtrl can be put in one of four modes. MSDN states:
"List view controls can display their contents in four different ways, called "views."
Each item appears as a full-sized icon (32 x 32 pixels) with a label below it. The user can drag the items to any location in the list view window. "
This is what e.g. the Control-Panel shows when you set it to "Icon-View".
Using a mode Microsoft calls "virtual list view ctrl", your application can prepare the (32x32 pixel) thumbnails on demand.
The complete work of loading and resizing the pictures remains at your application, though.
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
But if I remove Sleep(1); statement, then I got approximate data transfer bitrate, but it takes maximum CPU utilization;
& if I add Sleep(1); statement, then CPU utilization is les, but transfer bitrate is very less than 'm_Bitrate' bps.
Is their any optimum solution here? OR
Is their any wrong logic used for data tranfer? OR
Any way to reduce CPU utilization (Sleep for less than 1 Millisecond)?
How to create several files of integers to be used to test sorting.several sizes, for example, size 20, 200, and 2000. Make files that are in order, in reverse order, in random order, and partially in order. By keeping all this test data in files (rather than generating it with random numbers each time the program is run), the same data can be used to test different sorting methods, and hence it will be easier to compare their performance.