请问如何向VC++过度

vesontio 2014-10-24 04:09:40
大家好,

我想咨询一下有关学习VC++的步骤。我现在写点程序都是vim + make + gcc,但是VC++真的从来没有碰过。
现在因为工作需要,需要学习Windows下C++的编程。但是我对Windows API一无所知。

所以想问问有经验的朋友,如何能够循序渐进地学习Windows编程。最终的目的是希望能做些Windows接近内核级别的开发。哪种学习步骤更为合理,例如先学什么再学什么,需要去了解哪些知识。

谢谢大家!
...全文
540 19 打赏 收藏 转发到动态 举报
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
vesontio 2014-11-22
  • 打赏
  • 举报
回复
引用 18 楼 zhao4zhong1 的回复:
Windows DDK Windows SDK 《Windows核心编程》
OK~!收到!
nanjun520 2014-11-21
  • 打赏
  • 举报
回复
不太清楚LZ的学习习惯,我一般是先找本大家推荐的书籍,快速的过一遍。然后直接下载开发工具,自己整个小东西直接上手去弄, 不懂的时候百度, 从实战中来学习的
m筱米 2014-11-21
  • 打赏
  • 举报
回复
和lz相反,刚刚从windows端开发转到linux。
zmszsh 2014-11-21
  • 打赏
  • 举报
回复
好神奇的英文,看不懂!
赵4老师 2014-11-21
  • 打赏
  • 举报
回复
Windows DDK Windows SDK 《Windows核心编程》
赵4老师 2014-11-21
  • 打赏
  • 举报
回复
闲MFC老旧,去学Qt或duiLib
vesontio 2014-11-21
  • 打赏
  • 举报
回复
引用 15 楼 layershow 的回复:
就说一点,先别去看 MFC,会……
好的好的~哈哈
layershow 2014-11-21
  • 打赏
  • 举报
回复
就说一点,先别去看 MFC,会……
vesontio 2014-11-21
  • 打赏
  • 举报
回复
引用 8 楼 zmszsh 的回复:
好神奇的英文,看不懂!
哈哈哈,技术类的文档从来没有生涩的句式,其实没几个生词,看习惯以后,看英文比看中文更快。
vesontio 2014-11-21
  • 打赏
  • 举报
回复
引用 11 楼 zhao4zhong1 的回复:
Alphabetical List of MFC Samples Sample Illustrations ACDUAL Demonstrates how to add dual interface support to an MFC-based Automation server. AUTOCLIK Tutorial example illustrating Automation features in Visual C++ Tutorials. AUTODRIV A simple Automation client application that drives the AUTOCLIK tutorial sample application. BINDENRL Databound controls in a dialog-based application with property pages. BINDSCRB Illustration of the use of new COM interfaces to components currently supported by the Microsoft Office suite of products. CALCDRIV Automation client. CATALOG Illustration of direct calls to ODBC functions in general, and the ODBC functions SQLTables and SQLColumns in particular. CATALOG2 Illustration of direct calls to ODBC functions in general using Windows Common Controls. CHATSRVR Discussion server application for CHATTER. CHATTER Client application that uses Windows Sockets. CHKBOOK Record-based (nonserialized) document. CIRC Tutorial sample that teaches you how to create a simple ActiveX control called Circle. CMNCTRL1 Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 1). CMNCTRL2 Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 2). COLLECT MFC C++ template-based collection classes, and standard prebuilt collection classes. CONTAINER Tutorial example illustrating ActiveX Visual Editing container features in Visual C++ Tutorials. COUNTER Using an ISAPI DLL to send image data (rather than HTML data) back to a Web browser. CTRLBARS Custom toolbar and status bar, dialog bar, and floating palette. CTRLTEST Owner-draw list box and menu, custom control, bitmap button, spin control. CUBE OpenGL application using MFC device contexts along with OpenGL's resource contexts. DAOCTL DAO database class functionality and ActiveX controls let you examine a database. DAOENROL Based on ENROLL, but migrated to the DAO database classes. Also serves as Step 4 of the DaoEnrol tutorial. DAOTABLE Creates a Microsoft Access database (.mdb file) and its tables, fields, queries, and indexes using MFC DAO database classes. DAOVIEW DAO database classes and Windows Common Controls let you view the schema of a database. DBFETCH Demonstrates the use of bulk row fetching in the ODBC database classes. DBVList Demonstrates the virtual list view functionality available for the list view common control. DIBLOOK Device-independent bitmap and color palette. DLGCBR32 Adding a toolbar and a status bar to a dialog-based application. DLGTEMPL Shows how to create dialog templates dynamically. DLLHUSK Sharing the DLL version of the Foundation class library with an application and custom DLL. DLLTRACE Statically linking the MFC library to a custom DLL. DOCKTOOL Dragging and floating toolbars that are "dockable". DRAWCLI Full-featured object-oriented drawing application that is also an ActiveX Visual Editing container. DRAWPIC Getting a Windows handle to a bitmap or icon from an LPPICTUREDISP. DYNABIND Dynamic binding of database columns to a recordset. DYNAMENU Dynamically modifying list of items in menus; handling commands not known at compile time; and updating the status bar command prompt for such commands. ENROLL Tutorial example illustrating database features in Visual C++ Tutorials. EXTBIND Shows how to bind data-aware controls across a dialog box boundary. FIRE Dialog-based application that demonstrates five Windows Common Controls. FTPTREE Displays the contents of an FTP site in a tree control. GUIDGEN A dialog-based MFC application used to generate globally unique identifiers, or GUIDs, which identify OLE classes, objects, and interfaces. HELLO Simple application with frame window but no document or view. HELLOAPP Minimal "Hello World" application. HIERSVR ActiveX Visual Editing server application with drag and drop. HTTPSVR Uses MFC Windows Socket classes to implement an Internet HTTP server. IMAGE Demonstrates an ActiveX control that is capable of downloading data asynchronously. INPROC An in-process Automation server that can be loaded as a DLL in the client's address space. IPDRIVE A simple Automation client application that drives the INPROC sample application. LISTHDR Demonstrates the List View and Header Common Controls. MAKEHM Command line utility for associating resources with Help contexts. MDI MDI application that does not use documents and views. MDIBIND Demonstrates data binding in CWnd-derived windows, but only at run time. MDIDOCVW New version of the MDI sample that uses the document/view architecture. MFCBIND Shows how to create an ActiveX document (formerly known as a DocObject) container using the ActiveX document container support classes. MFCCALC An Automation server that implements a simple calculator. MFCIE Uses MFC's CHtmlView and CreBar classes to implement a subset of the functionality provided by Microsoft Internet Explorer. MFCRows Shows how to useCOleDBRecordView to scroll through a table in a database. Also how to use multiple accessors so you can update an Access table that contains an AutoNumber field to be retrieved. MFCUCASE Demonstrates MFC support for Internet Server filter DLLs. MODELESS Demonstrates the use of an MFC CDialog object as a modeless dialog. MTGDI Multithread illustration, where GDI resources are converted to MFC objects and back. MTMDI Multithread illustration, where user-interface events are processed in a separate user-interface thread. MTRECALC Multithread illustration, where recalculations are done in a worker thread. MULTIPAD Simple MDI text editor using the CeditView class. MUTEXES Demonstrates the use of the Cmutex class for multithreading. NPP Editor demonstrating toolbars, status bars, and other controls. OCLIENT ActiveX Visual Editing container application, with drag and drop. ODBCINFO Shows how to determine various ODBC driver capabilities at run time. OLDBARS Provides support for applications that rely on the old implementations of CToolBar and CStatusBar by providing the source code for these classes. OLEVIEW Implementing an OLE object browser through custom OLE interfaces. PINBALL An Internet Server Extension DLL that provides graphics and also redirects users to a Web site for further research. PROPDLG Property sheets (dialogs). ROWLIST Illustrates full row selection in a list-view common control. SAVER Screen saver written with MFC. SCRIBBLE Main tutorial example in Visual C++ Tutorials. SMILEY Modifying properties, calling methods, and handling events from the SMILE control in the SMILEY container. SNAPVW Shows how to use property pages in a MDI child frame window. SPEAKN Multimedia sound using user-defined resources. StockTicker An MFC and ATL application that retrieves stock quotes from the Web and displays them in an ATL control. The user can set the display's properties, including rate of data refresh. STDREG Tool for populating the Student Registration database (used by the Enroll database tutorial) in any format supported by an ODBC driver. Illustrates SQL table creation. SUPERPAD ActiveX Visual Editing server that edits text using CEditView. TEAR MFC console application that uses the Wininet.dll. TEMPLDEF Command line tool that expands source files similar to C++ templates. TSTCON Implements an ActiveX control container using MFC's support for OLE embedding. You can use TSTCON to test ActiveX controls, change their properties, and invoke their methods. TESTHELP An ActiveX control that has its own help file and tooltips. TRACER Tool that sets the Foundation class application trace flags kept in AFX.INI. TRACKER Illustration of the various CRectTracker styles and options. VCTERM Simple terminal emulation program illustrating the use of the Mscomm32.ocx ActiveX control. VIEWEX Multiple views, scroll view, splitter windows. WIZARD97 Demonstrates implementing a wizard that supports background bitmaps and wide header titles and images. This wizard design is supported for Windows 98 and Windows NT 5.0; you must be using Windows 98 or Windows NT 5.0 for this sample to work properly. WORDPAD Uses MFC's support for rich edit controls to create a basic word processor. WWWQUOTE Retrieves information from a database and provides it to the user via an HTTP connection to the server. See Also Microsoft Foundation Class Library Samples Index
我可能不需要用到MFC吧,因为过度以后的目标是WDK。 不过说起MFC,有人说它已经过时,有人说依旧有学习的必要。我个人觉得是封装得越多的,往往灵活性越低。 前辈的意见呢?
vesontio 2014-11-21
  • 打赏
  • 举报
回复
引用 10 楼 nanjun520 的回复:
不太清楚LZ的学习习惯,我一般是先找本大家推荐的书籍,快速的过一遍。然后直接下载开发工具,自己整个小东西直接上手去弄, 不懂的时候百度, 从实战中来学习的
我也差不多啦,我是喜欢PDF电子版的书籍,反正Google上面都可以摸得到。下载下来,安装好Visual Studio Express,然后一遍看书,一遍实践写点小代码,不懂的时候Google。其实差不多的。
赵4老师 2014-11-21
  • 打赏
  • 举报
回复
Alphabetical List of MFC Samples Sample Illustrations ACDUAL Demonstrates how to add dual interface support to an MFC-based Automation server. AUTOCLIK Tutorial example illustrating Automation features in Visual C++ Tutorials. AUTODRIV A simple Automation client application that drives the AUTOCLIK tutorial sample application. BINDENRL Databound controls in a dialog-based application with property pages. BINDSCRB Illustration of the use of new COM interfaces to components currently supported by the Microsoft Office suite of products. CALCDRIV Automation client. CATALOG Illustration of direct calls to ODBC functions in general, and the ODBC functions SQLTables and SQLColumns in particular. CATALOG2 Illustration of direct calls to ODBC functions in general using Windows Common Controls. CHATSRVR Discussion server application for CHATTER. CHATTER Client application that uses Windows Sockets. CHKBOOK Record-based (nonserialized) document. CIRC Tutorial sample that teaches you how to create a simple ActiveX control called Circle. CMNCTRL1 Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 1). CMNCTRL2 Demonstrates how to create and change the styles of Windows Common Controls using MFC classes (Part 2). COLLECT MFC C++ template-based collection classes, and standard prebuilt collection classes. CONTAINER Tutorial example illustrating ActiveX Visual Editing container features in Visual C++ Tutorials. COUNTER Using an ISAPI DLL to send image data (rather than HTML data) back to a Web browser. CTRLBARS Custom toolbar and status bar, dialog bar, and floating palette. CTRLTEST Owner-draw list box and menu, custom control, bitmap button, spin control. CUBE OpenGL application using MFC device contexts along with OpenGL's resource contexts. DAOCTL DAO database class functionality and ActiveX controls let you examine a database. DAOENROL Based on ENROLL, but migrated to the DAO database classes. Also serves as Step 4 of the DaoEnrol tutorial. DAOTABLE Creates a Microsoft Access database (.mdb file) and its tables, fields, queries, and indexes using MFC DAO database classes. DAOVIEW DAO database classes and Windows Common Controls let you view the schema of a database. DBFETCH Demonstrates the use of bulk row fetching in the ODBC database classes. DBVList Demonstrates the virtual list view functionality available for the list view common control. DIBLOOK Device-independent bitmap and color palette. DLGCBR32 Adding a toolbar and a status bar to a dialog-based application. DLGTEMPL Shows how to create dialog templates dynamically. DLLHUSK Sharing the DLL version of the Foundation class library with an application and custom DLL. DLLTRACE Statically linking the MFC library to a custom DLL. DOCKTOOL Dragging and floating toolbars that are "dockable". DRAWCLI Full-featured object-oriented drawing application that is also an ActiveX Visual Editing container. DRAWPIC Getting a Windows handle to a bitmap or icon from an LPPICTUREDISP. DYNABIND Dynamic binding of database columns to a recordset. DYNAMENU Dynamically modifying list of items in menus; handling commands not known at compile time; and updating the status bar command prompt for such commands. ENROLL Tutorial example illustrating database features in Visual C++ Tutorials. EXTBIND Shows how to bind data-aware controls across a dialog box boundary. FIRE Dialog-based application that demonstrates five Windows Common Controls. FTPTREE Displays the contents of an FTP site in a tree control. GUIDGEN A dialog-based MFC application used to generate globally unique identifiers, or GUIDs, which identify OLE classes, objects, and interfaces. HELLO Simple application with frame window but no document or view. HELLOAPP Minimal "Hello World" application. HIERSVR ActiveX Visual Editing server application with drag and drop. HTTPSVR Uses MFC Windows Socket classes to implement an Internet HTTP server. IMAGE Demonstrates an ActiveX control that is capable of downloading data asynchronously. INPROC An in-process Automation server that can be loaded as a DLL in the client's address space. IPDRIVE A simple Automation client application that drives the INPROC sample application. LISTHDR Demonstrates the List View and Header Common Controls. MAKEHM Command line utility for associating resources with Help contexts. MDI MDI application that does not use documents and views. MDIBIND Demonstrates data binding in CWnd-derived windows, but only at run time. MDIDOCVW New version of the MDI sample that uses the document/view architecture. MFCBIND Shows how to create an ActiveX document (formerly known as a DocObject) container using the ActiveX document container support classes. MFCCALC An Automation server that implements a simple calculator. MFCIE Uses MFC's CHtmlView and CreBar classes to implement a subset of the functionality provided by Microsoft Internet Explorer. MFCRows Shows how to useCOleDBRecordView to scroll through a table in a database. Also how to use multiple accessors so you can update an Access table that contains an AutoNumber field to be retrieved. MFCUCASE Demonstrates MFC support for Internet Server filter DLLs. MODELESS Demonstrates the use of an MFC CDialog object as a modeless dialog. MTGDI Multithread illustration, where GDI resources are converted to MFC objects and back. MTMDI Multithread illustration, where user-interface events are processed in a separate user-interface thread. MTRECALC Multithread illustration, where recalculations are done in a worker thread. MULTIPAD Simple MDI text editor using the CeditView class. MUTEXES Demonstrates the use of the Cmutex class for multithreading. NPP Editor demonstrating toolbars, status bars, and other controls. OCLIENT ActiveX Visual Editing container application, with drag and drop. ODBCINFO Shows how to determine various ODBC driver capabilities at run time. OLDBARS Provides support for applications that rely on the old implementations of CToolBar and CStatusBar by providing the source code for these classes. OLEVIEW Implementing an OLE object browser through custom OLE interfaces. PINBALL An Internet Server Extension DLL that provides graphics and also redirects users to a Web site for further research. PROPDLG Property sheets (dialogs). ROWLIST Illustrates full row selection in a list-view common control. SAVER Screen saver written with MFC. SCRIBBLE Main tutorial example in Visual C++ Tutorials. SMILEY Modifying properties, calling methods, and handling events from the SMILE control in the SMILEY container. SNAPVW Shows how to use property pages in a MDI child frame window. SPEAKN Multimedia sound using user-defined resources. StockTicker An MFC and ATL application that retrieves stock quotes from the Web and displays them in an ATL control. The user can set the display's properties, including rate of data refresh. STDREG Tool for populating the Student Registration database (used by the Enroll database tutorial) in any format supported by an ODBC driver. Illustrates SQL table creation. SUPERPAD ActiveX Visual Editing server that edits text using CEditView. TEAR MFC console application that uses the Wininet.dll. TEMPLDEF Command line tool that expands source files similar to C++ templates. TSTCON Implements an ActiveX control container using MFC's support for OLE embedding. You can use TSTCON to test ActiveX controls, change their properties, and invoke their methods. TESTHELP An ActiveX control that has its own help file and tooltips. TRACER Tool that sets the Foundation class application trace flags kept in AFX.INI. TRACKER Illustration of the various CRectTracker styles and options. VCTERM Simple terminal emulation program illustrating the use of the Mscomm32.ocx ActiveX control. VIEWEX Multiple views, scroll view, splitter windows. WIZARD97 Demonstrates implementing a wizard that supports background bitmaps and wide header titles and images. This wizard design is supported for Windows 98 and Windows NT 5.0; you must be using Windows 98 or Windows NT 5.0 for this sample to work properly. WORDPAD Uses MFC's support for rich edit controls to create a basic word processor. WWWQUOTE Retrieves information from a database and provides it to the user via an HTTP connection to the server. See Also Microsoft Foundation Class Library Samples Index
vesontio 2014-11-20
  • 打赏
  • 举报
回复
引用 5 楼 starytx 的回复:
可以直接建个控制台程序或者MFC工程,找本实例书学一下,主要就是熟悉下IDE
我现在在看《Windows System Programming》,我不知道这本书中文译名是什么,感觉主要是熟悉Windows重新定义的一堆宏,例如DWORD,LPTSTR,LPCTSTR,TCHAR,BOOL等等,还有标准C函数的Windows实现。接着就是熟悉熟悉常用的Win32 API了。《Windows核心编程》日后肯定是要翻一翻的,毕竟是那么知名的著作。
ForestDB 2014-11-03
  • 打赏
  • 举报
回复
直接看Windows核心编程吧。
starytx 2014-11-03
  • 打赏
  • 举报
回复
可以直接建个控制台程序或者MFC工程,找本实例书学一下,主要就是熟悉下IDE
vesontio 2014-10-26
  • 打赏
  • 举报
回复
引用 3 楼 liusuanyatong 的回复:
windows程序设计就可以了啊,感觉写得很详细的
恩,谢谢,我已经咨询了不少人,感觉大家绕来绕去,基本逃不出这两本书。
liusuanyatong 2014-10-25
  • 打赏
  • 举报
回复
windows程序设计就可以了啊,感觉写得很详细的
vesontio 2014-10-24
  • 打赏
  • 举报
回复




上面这两本么?
QIUSQJF 2014-10-24
  • 打赏
  • 举报
回复
WINDOWS程序设计、WINDOWS核心编程
源码包主要内容: --CuteSoap:ATL组件代码,用VC++封装的Web Services的客户端调用组件,支持同步与异步两种调用,支持多种参数类型的打包。在“CSDN助手”中用于论坛的登录。 --CSDNAgent:ATL组件代码,封装CSDN常用的功能 --程序集:这是CSDN助手的页面文件,包含大量javascript、vbscript ============================================= CSDN助手,采用独特的设计,在包含所有CSDN论坛功能的基础上,实现了更多方便实用的特性。 特色功能: 1、包括所有CSDN论坛功能:如看帖、回帖、结帖、管理、搜索 等等。 2、签名走马灯:可指定签名列表,循环使用。让每一次的签名都与众不同。 3、缓存优化:采用Moniker进行帖子的下载,优化缓存操作,为Internet临时目录瘦身,避免了临时文件的过度膨胀。 4、帖子监视:尽管回帖挣分,当“有新回复”或“已结帖”时,自动弹出窗口提示您。 5、帖子收藏:将帖子收藏起来,以备查阅。 6、查看历史记录:保存帖子的查看记录,以备查阅。 7、新消息检测:如有新的消息,自动弹出提示窗口。 8、多帐号管理:可管理多个帐号,可保存用户名和密码信息。 9、丰富的体验:多标签浏览 + 鼠标拖拽 + 鼠标手势。 特别提示: *****如何加入监视区: 1、回复帖子后,自动将帖子加入“监视区”; 2、右键点击帖子链接,或在帖子的显示页面点击右键;在弹出的快捷菜单中点击“添加到监视区”即可。

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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