简体   繁体   中英

Does Win32 allow applications that both use Console and Windowing?

C# spoils me in that I can write an application that targets the 'Console', while still using windowing. This is super useful for debugging, but alas, I am at a loss: can applications in Win32 that target /SUB-SYSTEM:WINDOWS also use the console?

Yes. If you create a console application you can still create windows. Just like a non-console application you still have to have get and dispatch window messages. If you create a window based application you can create a console by calling AllocConsole .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM