开发者

Redirecting compiler output to the Win32 program

开发者 https://www.devze.com 2023-04-03 01:27 出处:网络
Well I\'ve searched for this but obviously found pure explanations and examples for objects 开发者_运维百科in C#, my solution is on C++.

Well I've searched for this but obviously found pure explanations and examples for objects 开发者_运维百科in C#, my solution is on C++. I've a gcc compiler, to which i send command to compile my program (invoke it as a process with a parameters) I need to catch the output and show it in my Win32 written on C++ program. How to do that?


In C/C++, this is usually done with "popen"

See: http://msdn.microsoft.com/en-us/library/96ayss4b(VS.71).aspx
(Windows example, but popen is generally portable)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号