开发者

How to open Empty console window in program (windows)

I need to open a Console window from th开发者_如何学Ce application and need to perform read write operation using console API.


To work with consoles in WinAPI there are some functions such as AllocConsole(), GetStdHandle(), WriteConsole(), ReadConsole(), etc. More info at http://msdn.microsoft.com/en-us/library/ms682073(VS.85).aspx


First case in my mind is to create two levels of your application: server and clients. Server will start clients(new console windows) and clients will cooperate with server. How it would be done you must choose(crossproccess interaction, sockets, etc.)

Second case is intercepting of WinAPI messages from other console window, but in that case i can`t help you :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜