Can anyone please give me a guideline on how to code the following?

I have an MFC application which should call on a timer basis a python script from command line and read the ouput of that command line.

I thought of using CreateProcess, but i have no clue of how am i going to read the output of the python script which is sent to the command line buffer.

Is there any standard way of doing this?

Thanks in advance.

I think pipes will work for you. Here are a few links you might want to read.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.