문제

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