views:

38

answers:

0

Hi,

I have a small C++ console application which presents a menu then performs the chosen operation.

In addition, I've written a VBScript which runs over the StdOut (achieved by Exec) and enters to StdIn the values.

However when I'm trying to executet this script the console application is stuck in the scanf call and the script doesn't receive anything from the output. _flushall() doesn't help.

Does anyone have any idea?

Thanks.