In the natural interface, various creatures have their lifecycles. Program It also has its own life cycle. When it was created, it was born. When it was running for a period of time, and ultimately it was about to die, how did the death of the
the operating system has several status changes to the thread: Execution, suspension, and recovery. when the thread finishes the task or wants to pause the running of the thread, you need to use suspendthread to pause the thread execution. Of
The last time I learned about the global memory allocation, in windows, the memory management is divided into two parts. The global memory is the memory managed by the system, so all processes can access the memory, each process has its own memory
For cross-platform gaming, there is one sentence:
A game that's an RTS on the PC cocould be an FPS on the 360, where "I'm the RTS commander, and I'm moving units around and you're the foot soldier going out and fighting the battles. and how you
When the application Program When running, you press the shortcut key to generate a key message. In Windows, how does one convert it into a message that responds with the shortcut key? This requires the translateaccelerator function. The main
Original article:Http://www.51see.com/asp/bbs/public/bp_show.asp? T_id = 200308131152297103.
Let's talk about the difference between Socket mode and socket I/O model. First, it is only for Winsock. If you want to pick an egg in the bones and apply
Wm_user to 0x7fff are reserved for private window classes. You can think of this range as meaningful private messages in a specific form class. Applications that want to define their own messages
ProgramWm_app should be used.
Wm_app ensures that
Users feel that the software is easy to use, that is, they can do some work on a regular basis without the need to participate. For example, update the virus database regularly every day, regularly download movies, and regularly update characters in
In the age of information explosion, classification of various types of information is already a very necessary function. For example, to save stock market data to a hard disk, you need to separate several directories for storage. For example, when
The previous section describes how to obtain a message from the system queue, check the function of the shortcut key, and convert the character message function. The last thing to do is to call the dispatchmessage function, it means to send this
In
PC
In the hardware architecture, the fastest memory is
CPU
Register in the system, then to the second-level cache, and then to the System
Ram
Memory, and finally to the hard disk. This architecture determines how the operating system
Debugging is a common task during software development. Program Many problems may occur, but logical problems may also be unfamiliar with the API, or API calls may fail under certain conditions. So what are the causes of these errors? Generally,
Time is a very important information. For example, when writing a log, you need to output the time and track it. Program When did the error occur. Or when you develop a bank transaction system, you need to record the current transaction time so that
When multiple threads operate on the same data, they generally need to access the data in order. Otherwise, data may become disordered and data cannot be controlled and becomes a random variable. To solve this problem, we need to introduce mutex
One day, I was developing the btsoftware, which had the function of allocating the file size and then writing data to the corresponding location. The advantage is that the disk space can be occupied first, so that subsequent Downloads can proceed
In software development, you often encounter the need to read the configuration parameter files in the current directory, or open other programs in the current directory to run, you need to obtain the directory location of the current process, in
TranslateMessage is used to convert a virtual key message to a character message. Because Windows uses the definition of virtual keys for all keyboard encodings, when the keys are pressed, messages that do not have character messages need to be
During software development, data sharing between processes is also frequently required. For example, if process A creates computing data, process B displays the Data graph. Such a development method can split a large program into independent small
Data sharing among multiple software is very important. It is hard to imagine how inconvenient it is to edit the software without the CTRL + C and CTRL + V functions. Many operations are the copy action for data sharing. Clipboard sharing is an
In Windows, using the completed port is one of the high-performance methods, such as using the completed port to the thread pool and network server. Now we will introduce how to use the finished port through the thread pool method, and how to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.