How do I redirect output from a dos program.

Example.

main()
{
printf("TEXT\n");
}

Normally this will launch a DOS shell and print it to the stdio. I want to redirect the output from the PRINTF statement to an edit control of a dialog box.


TIA
ô¿ô
«-»

ô¿ô
«=»