首页| 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次
  • 浏览次数:1次
  • 资源积分: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
  • 11 4分钟前 成为了本站会员

  • 开心快活人 3小时前 成为了本站会员

  • 晋财 3小时前 成为了本站会员

  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

0.202516s