请问:win32 application和win32 console application有什么区别呀

pingguigui 2004-03-21 01:06:39
比如有些程序在console里运行很好,到win32 application里就出错,还有的比如API,在win32 application里就可以,到console就出现错误??
...全文
43 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunrui 2004-03-21
  • 打赏
  • 举报
回复
win32 application用于开发基于窗口的GUI程序,而console用于兼容以前的面向过程的程序。在装载console应用时,系统自动为它创建一个控制台窗口。

两种模式本质上没有什么区别,win32 application可以调用API创建控制台窗口,并在其中输出信息;而console也可以创建窗口,比如你可以在console里调用MessageBox。
pingguigui 2004-03-21
  • 打赏
  • 举报
回复
比如我这个帖子:
http://expert.csdn.net/Expert/topic/2863/2863915.xml?temp=.5660822
只能在win32里运行的呀
pingguigui 2004-03-21
  • 打赏
  • 举报
回复
就是说,有些程序只能在win32 application里运行,有些程序只能在win32 console application里运行,那这二者的区别在哪里呢,就是什么时候用win32 application,什么时候用win32 console application呢
hcj2002 2004-03-21
  • 打赏
  • 举报
回复
可以呀
API 函数在win32 application和console都可以用。
另外,win32 application是以winMain()作为函数入口,console以main()函数为入口。
sharkhuang 2004-03-21
  • 打赏
  • 举报
回复
因该编译不过去啊!
Title: Software Application Development: A Visual C++, MFC, and STL Tutorial Author: Bud Fox Ph.D., Tan May Ling M.Sc., Zhang Wenzu Ph.D. Length: 1216 pages Edition: 1 Language: English Publisher: Chapman and Hall/CRC Publication Date: 2012-08-08 ISBN-10: 1466511001 ISBN-13: 9781466511002 Software Application Development: A Visual C++, MFC, and STL Tutorial (Chapman & Hall/CRC Computer and Information Science Series) Software Application Development: A Visual C++, MFC, and STL Tutorial provides a detailed account of the software development process using Visual C++, MFC, and STL. It covers everything from the design to the implementation of all software modules, resulting in a demonstration application prototype which may be used to efficiently represent mathematical equations, perform interactive and intuitive model-building, and conduct control engineering experiments. All computer code is included, allowing developers to extend and reuse the software modules for their own project work. The book’s tutorial-like approach empowers students and practitioners with the knowledge and skills required to perform disciplined, quality, real-world software engineering. Table of Contents Chapter 1 - Object-Oriented Analysis and Design Chapter 2 - Initial Graphical User Interface Chapter 3 - Constructing Blocks Chapter 4 - Constructing Block Ports Chapter 5 - Constructing Connections Chapter 6 - Moving Blocks and Connections Chapter 7 - Automatic Block Placement Chapter 8 - Connection-Based Bend Points Chapter 9 - Block Dialog Windows Chapter 10 - Conversion of String Input to Double Data Chapter 11 - Moving Multiple Items Chapter 12 - Addition of a Tree View Control Chapter 13 - Review of Menu and Toolbar-Based Functionality: Part I Chapter 14 - Context Menu Extension Chapter 15 - Setting Port Properties Chapter 16 - Key-Based Item Movement Chapter 17 - Reversing Block Direction Chapter 18 - Model Validation Chapter 19 - Non-Feedback-Based Signal Propagation Chapter 20 - Graph Drawing Chapter 21 - Block Operations Chapter 22 - Preparation for Feedback-Based Signal Propagation Chapter 23 - Feedback-Based Signal Propagation Chapter 24 - Placing an Edit Box on a Toolbar Chapter 25 - Serialization Chapter 26 - Review of Menu and Toolbar-Based Functionality: Part II Chapter 27 - Printing and Print Preview Chapter 28 - Implementing a Scroll View Chapter 29 - Edit Menu Chapter 30 - Annotations Chapter 31 - Tools Menu Chapter 32 - Help Menu Chapter 33 - Finalizing the Project Chapter 34 - Conclusion Appendix A: ControlEng: Win32 Console Application Appendix B: Constructing Connections: An Exploration Appendix C: NodeArcConnectivity: Win32 Console Application Appendix D: Debugging: An Introduction Appendix E: MatrixInversion: Win32 Console Application Appendix F: Using DiagramEng

65,186

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧