首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Environment: VC6 Win2K/NT/98 This sample describes the difference between CONSOL...

Environment: VC6 Win2K/NT/98 This sample describes the difference between CONSOL...

  • 资源大小:200.92 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: GDI-Bitmap

资 源 简 介

Environment: VC6 Win2K/NT/98 This sample describes the difference between CONSOLE and GUI applications with 20 lines of code. There are 2 small projects in this sample. The first project shows how to create a console in WinMain(). First of all, we need to allocate a console with AllocConsole() secondly, we in turn retrieve the operating system handle (GetStdHandle), run-time handle (_open_osfhandle), stream (_fdopen) and standard stream (stdout) finally, we can call functions like printf() and scanf(). The second project demonstrates how to create a window in main(). I created an edit box in a separate thread, so that you can control this window from the console. I retrieved the module handle through GetModuleHandle(), and then I called CreateWindow with the predefined class name EDIT. As you can see, there is not much essential difference between console and GUI applications, even though VC requires us to indicate the type of the application when you create a p

文 件 列 表

CodeGuru Essential Difference between CONSOLE and GUI Applications
CodeGuru Essential Difference between CONSOLE and GUI Applications.mht
Console_Source.zip
Console_Exe.zip
VIP VIP
0.209998s