There's information my program has to send from one part to another, such as from DragEnter
to GiveFeedback
to change the cursor. This is easily done with a variable as a flag. However – what if the user starts several instances of the program?
One way would be to write information to a file, but it seems best to do as little disk operations as possible. Another way would be to use pipes, but it seems a bit complicated if there are many instances of the program. Is there another way?
Take a look at memory mapped files .
A memory-mapped file contains the contents of a file in virtual memory. This mapping between a file and memory space enables an application, including multiple processes, to modify the file by reading and writing directly to the memory.
我将如何设置Model-View-Controller ……那是如果我正确理解了您的问题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.