Not sure if you are familiar with the fxc.exe file. It's basically a command line based application to compile shader files.
Anyway what I want to do is call this at a specific point in my actual application (win32) and output the log inside of my console GUI which accepts a string. So I need to catch the console output of this application that I call and write it in a buffer.
I've been trying to find a solution to this for a bit but haven't gotten far.
I've only managed to find out that I need to somehow direct the output of that application using pipes to my application or something...
But I'm clueless on how to do so.
Does anyone know how to do that or has already done that before ?