|
You can't.
One of the ideas of overlapped I/O is so that you don't
have to wait. Overlapped I/O is also FIFO already.
If you want to wait, don't use overlapped I/O.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for your reply...
My problem is that I've a first process that writes data (raw image) to a pipe and a second process which connects to this pipe and reads data from the pipe.
I want to use overlapped structure to let the first process write the next data without waiting until the second process read the old data.
It's important for the first process to know when the pipe is full because at this time It can skip images.
If you have any suggestions to do that...
Thanks in advance.
Hello World!!!
from Raphaël
|
|
|
|
|
Throttling data stream rate can be complex. You could establish a
constant rate or use an adjustable/variable rate based on comm
conditions, which are continuously monitored.
You'll maybe want to somehow keep track of how many overlapped operations
are pending. If this value keeps increasing, then you need to slow
the send rate until the amount of pending ops stays constant.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
I'm going to learn a new subject on C++. Working with Windows API. Since I work with Java there is no API used, but I feel it is better to work a little with APIs.
Here is my attempt for that.
I want to read the system time zones and display on the console. Basically in two columns, City and the Time offset. From where I should start work. Can you guys give some clues. Following week I'm free because of Christmas, so I can do some work on it.
Thanks
I appreciate your help all the time...
Eranga
|
|
|
|
|
Can you use of GetSystemTime?
|
|
|
|
|
Actually I'm looking to get the timezone details from the system. I mean if you check the time zone drop-down menu you can see a large number of timezones list. What I want to do is read all of them and print on a console.
I appreciate your help all the time...
Eranga
|
|
|
|
|
A time zone is simply the number of hours a particular area is from UTC. So you could get fairly close with something like:
for (int x = -12; x < 15; x++)
{
if (x < 0)
printf("UTC%d\n", x);
else if (x > 0)
printf("UTC+%d\n", x);
else
printf("UTC\n");
} You can add this to a list of some sort, along with some familiar city located within each zone.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for your code.
I think there is one thing, which I can't do. The list of time zone names. Only I can get the systems' time zone informations. Is that right. When I go through the MSDN, that what I got.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Other than the convention that I provided, I do not know of a standard 'name' for time zones.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Ok, say I want to do this. User gives the time offset, say -6:30 as an example. Now I want to find the appropriate time zone name. From where I should find it?
I appreciate your help all the time...
Eranga
|
|
|
|
|
SetWindowExtEx
SetViewportExtEx
SetWindowOrg
SetViewportOrg
DPtoLP
LPtoDP
I need these functions in my program.
Thanks in advance.
modified on Thursday, December 20, 2007 11:03:00 AM
|
|
|
|
|
|
I've found it in msdn, the topic is "Types of Coordinate Systems".
|
|
|
|
|
Hi,
How can i check during drop operation which mouse button(left or right) is released.
|
|
|
|
|
When I move the dialog box I just want to paint the border. This is the deafult behaviour in Java/Swing. It avoids a lot of flickering and refresh problem.
Is there any easy way to achive this in wonodws?
|
|
|
|
|
Hi all.....
Please tell me what is Message Reflection?
Thanks in advance
sairam
|
|
|
|
|
|
Hi everybody,
I want to warn a customer in my app when Windows begin to swap. How can i to get this information ?
Somebody can help me ?
Thx
André Rios
|
|
|
|
|
Andre Rios wrote: when Windows begin to swap.
What do you mean by this? Windows is in a constant state of swapping data to/from disk.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
This case of swapping: When the physical memory is full and Windows write memory data to disk for free physical memory.
|
|
|
|
|
So why would you want to detect, and subsequently act upon, something that Windows does almost non-stop?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have this graph to explain my case :
The Virtual Mem is the Virtual Memory Size of the process.
The Used Mem is the Physical Memory used by the process.
thx
|
|
|
|
|
Well, if you can find those two values in the Performance Monitor, the solution is rather simple.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
In the AppWizard and CodeWizard directories of Microsoft Visual Studio there are some code template files. These templates contain string substitutions such as [!output CLASS_NAME]. Does anyone know where I can find a list of these 'variables' and what they are substituted with? Also does anyone know if it is possible to add ones own 'variables'.
|
|
|
|
|
Hi all,
I have the following string: "MA01234 TEST" and I want to replace the number part of the string with a value of (just an example) "43210 ". So how can I replace the value within the string? What function can I make use of?
Example:
MA01234 TEST
TO
MA43210 TEST
Can anyone please assist me.
Many Thanks in advance
Regards,
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|