Cheetah Mfc--th_ Double Pipe--operation on the pipe just like the operation of the file

Source: Internet
Author: User
Use a dual pipeline to communicate to two processes, no need to re-open process high efficiency "use a process to communicate over and over two pipelines four handles, two member variables two local variables" modify the code for single pipe 1 "


Paste into the constructor:

Modify the name of the variable after pasting into the constructor:

The changes are as follows:







The code selected above is the paste to be used when executing the command to the following "

The string szcmd refers to a global variable because the following is also used:

To close a local variable:

The member variables of the class are to be closed in the destructor: '



First comment out the code that is not written:



Uncomment the Read output pipeline
Modify the code: ",




Modify sleep time: Otherwise there will be a situation that cannot be read











From for notes (Wiz)

Cheetah Mfc--th_ Double Pipe--operation on the pipe just like the operation of the file

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.