I have 2 processes in my Win32 console application. 1 process - main program 1 process - cli process.

These 2 processes communicate through UDP packets (Sockets). Cli issues a request for a DUMP on a specific entity in the main program.

I want the dump to be printed on the stdout of the CLI (using printf prints it in the main program stdout).

How can I do it? I want to pass FILE* or similar.... Pass the output device to dump to.

How can it be done? If possible at all

Thanks yoav

有帮助吗?

解决方案

Just return the DUMP information to the CLI program and let it print it to stdout !

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top