I'm going to code in C++ and Python. I want Python to do a web crawling task and return the results to a C++ listbox. How can I grab the results from Python and pass them to the C++ part of my application? Only thing i see differences from how to pass a value to c++ from python and back? then my question is that I'm asking how to grab results from python and add them in C++ listbox; for example,
p = subprocess.Popen(["/your/app"], //Yes app goes there //how about the results not the app itself? stdin=subprocess.PIPE, stdout=subprocess.PIPE) output = p.communicate(input)[0]
listBox1.Items.Add(p); // p should add results from python. I didn't see this in the other site so I post this.