re: Where did the research project RedShark get its name?
I spent my youth as a theoretical physicist, so my favorite project code name is "Spherical Cow" for Fedora 18.
View Articlere: How can I move an HTREEITEM to a new parent?
@Smouch: Why do all this? If you know the target Tree-View layout you can easily synthesize comparison function for TreeView_SortChildrenCB.
View Articlere: How can I move an HTREEITEM to a new parent?
Ah, sorry, read your comment again. Please disregard my previous think-o.
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
But why read the documentation when you can randomly ask strangers for help?
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
If the Read/Write functions were split you could not use the "overlapped with synchronous handle" trick so I guess it's a good thing the design stayed this way. People just need to RTFM.Read/WriteFile...
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
It would be easy to make the parameter truly optional. A simpleDWORD dummy;if (!lpNumberOfBytesRead) lpNumberOfBytesRead = &dummy;in the function would suffice.
View Articlere: Where did the research project RedShark get its name?
When we started my current company we decided we wanted our project names to have a theme. After casting around for a bit we decided on rock bands. We figured this had many advantages:1. A near-endless...
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
The difference in behavior with consoles is because ReadFile and WriteFile have a total hack for console I/O. Consoles are assigned fake HANDLE values that WriteFile specifically recognizes, and...
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
@jpa: I think it is better that it crash. Otherwise it will lead to problems I find in Posix programs all the time. If the programmer ignores the bytes value from read() or write(), and assumes that...
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
@jpa:"...until the second man questions him."
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
@Zan Lynx':Or the simple case of being at the end of file and the file not being an exact multiple of the size you specified to read.@Myria:That isn't quite right, the handles are actually recognised...
View Articlere: How can I move an HTREEITEM to a new parent?
@Antonio 'Grijan': Possibly the fact that Windows 95 had to run in 4MB of RAM, and be sufficiently responsive on a 40MHz 386DX, is why TreeView doesn't support re-parenting an item. If items can be...
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
@WndSks: 'just need to RTFM' - the trouble is that busy developers don't read the manual, or don't read it thoroughly enough, particularly for functions they 'know' how to use. The trouble with...
View Articlere: How do I wait until all processes in a job have exited?
Please note the ability to use job for waiting for a process tree is actually an abuse of the system. Your code cannot use it if some other piece of code is using it to monitor you becaue jobs do not...
View Articlere: How do I wait until all processes in a job have exited?
Exercise: JOBOBJECT_ASSOCIATE_COMPLETION_PORT structure: "The system sends messages to the I/O completion port associated with a job when certain events occur. If the job is nested, the message is sent...
View Articlere: How do I wait until all processes in a job have exited?
Seems the lack of the word "only" is a source of confusion."The state of a job object is set to signaled ONLY when all of its processes are terminated ONLY because the specified end-of-job time limit...
View Articlere: Don't forget, the fourth parameter to ReadFile and WriteFile is sometimes...
> In practice all synchronous buffered ReadFile operations that target a block device (i.e. a disk) will return the amount of data you asked for.I've seen it not do that. Now WriteFile on the other...
View Articlere: How do I wait until all processes in a job have exited?
Jobs would very good tool.. If they wouldn't be half-cooked. Every time I tried to use them I faced with some very stupid problems. Like unability to nest jobs ('fixed' in Win8) or unfixable...
View Articlere: How do I wait until all processes in a job have exited?
I wonder whether using the job handle as the completion key is entirely reliable. I mean, the child process does not inherit the job handle, so if the child process also calls CreateJobObject, I'm...
View Articlere: Some trivia about the //build/ 2011 conference
The year is 2005 and I just started working for Siemens Automotive VDO (defunct now, Siemens sold it's automotive division meanwhile) and I got "shipped" directly to work for the immobilizer for Mazda...
View Article