友情提示:如果本网页打开太慢或显示不完整,请尝试鼠标右键“刷新”本网页!
富士康小说网 返回本书目录 加入书签 我的书架 我的书签 TXT全本下载 『收藏到我的浏览器』

深入浅出MFC第2版(PDF格式)-第36部分

快捷操作: 按键盘上方向键 ← 或 → 可快速上下翻页 按键盘上的 Enter 键可回到本书目录页 按键盘上方向键 ↑ 可回到本页顶部! 如果本书没有阅读完,想下次继续接着阅读,可使用上方 "收藏到我的浏览器" 功能 和 "加入书签" 功能!





MSDEV  

   BIN              各种EXE、BAT、DLL。 

       DEBUG        除错版本(各种DLLs)。 

       HELP         各种Help 文件。 

       CRT        

       ATL        ActiveX Template Library 函数库的源代码。 

          INCLUDE    ATL 的包含档(头文件) 

          SRC         ATL 的源代码 

       REDIST   这是可以自由(免费)传播的文件,包括你的应用程序售出后, 

                     执行时期所需的任何DLLs,如MFC42。DLL、ODBC DLLs、 

                     DAO DLLs。还包括微软公司附赠的一些OCXs。 



    SAMPLES     丰富的范例程序(请看附录C) 

       APPWIZ  

       ATL  

         

       ENT  

       MFC  

       SDK  



    INCLUDE     各种 。H 文件。包括C/C++ 函数头文件、WINDOWS。H 等等。 

   LIB          各种 。LIB。包括C/C++ runtime、Windows DLLs import  

                                                                    函数库。 

   MFC  

       INCLUDE   以AFX 开头的 。H 文件(MFC 的头文件)。 

       LIB       MFC 的静态函数库(static library)。 

       SRC       MFC 的源代码(。CPP 档)。 



手册呢?C/C++ 加上SDK 再加上MFC 共二十来本厚薄不一的手册不可能塞到宽仅 



五公分的VC++ 5。0 包装盒中。所有的手册都已电子化到那片CD…ROM 去了。像我这 



种看书一定得拿支笔的人,没什么比这更悲哀的事。不是没有补救办法,再花个数千元 



就可得到VC++  印刷手册,另一个数千元可再得到SDK 印刷手册。 



                                                                         227 


…………………………………………………………Page 290……………………………………………………………

                   第篇    欲善工事先利其器 



                                              MFC Tech Notes 



                    VC++ 5。0  的Online Help 中有一些好东西:为数69 篇的宝贵技术文件。以下是一份列表。 



                    文件1 至17 是一般性主题,适用于MFC 1。0 和2。0 ;文件18 和19 专注在如何将MFC 1。0 



                    程序移植到MFC 2。0 ;文件20 至36 适用于MFC 2。0           (或更高版本) ;文件37 适用于32 



                    位版MFC ;文件38 至48 适用于MFC 2。5         (或更高版本);文件49 至52 适用于MFC 



                    3。0 (或更高版本);文件53 至69 适用于MFC 4。0            (或更高版本)。某些号码跳掉是因 



                    为MFC 1。0  的老东西不值得再提。 



                  1。   Window Class Registration 



                  2。   Persistent Object Data Format 



                  3。   Mapping of Windows Handles to Objects 



                  4。   C++ Template Tool 



                  6。   Message Maps 



                  7。   Debugging Trace Options 



                  8。   MFC OLE Support 



                   11。  Using MFC as Part of a DLL 



                   12。  Using Windows 3。1 Robustness Features 



228 


…………………………………………………………Page 291……………………………………………………………

                                                    第4章    Visual C++  整合開發環境 



14。  Custom Controls 



15。  Windows for Pen 



16。  Using C++ Multiple Inheritance with MFC 



17。  Destroying Window Objects 



18。  Migrating OLE Applications From MFC 1。0 to MFC 2。0 



19。  Migrating MFC 1。0 Applications to MFC 2。0 



20。   ID Naming and Numbering Conventions 



21。   mand and Message Routing 



22。   Standard mands Implementation 



23。   Standard MFC Resources 



24。   MFC…Defined Messages and Resources 



25。   Document; View; and Frame Creation 



26。   DDX and DDV Routines 



27。   Emulation Support for Visual Basic Custom Controls 



28。   Context…Sensitive Help Support 



29。   Splitter Windows 



30。   Print Preview 



31。  Control Bars 



32。   MFC Exception Mechanism 



33。   DLL Version of MFC 



34。  Writing a Windows 3。0 patible MFC Application 



35。   Using Multiple Resource Files and Header Files with App Studio 



36。   Using CFormView with AppWizard and ClassWizard 



37。                                      ( 

     Multithreaded MFC 2。1 Applications    32…bit specific) 



38。   MFC/OLE IUnknown Implementation 



39。   MFC/OLE Automation Implementation 



40。   MFC/OLE In…Place Resizing and Zooming 



41。   MFC/OLE1 Migration to MFC/OLE2 



42。   ODBC Driver Developer Reendations 



43。   RFX Routines 



44。   MFC support for DBCS 



45。   MFC/Database support for Long Varchar/Varbinary 



46。   menting Conventions for the MFC classes 



                                                                                       229 


…………………………………………………………Page 292……………………………………………………………

                    第篇    欲善工事先利其器 



                    47。   Relaxing Database Transaction Requirements 

                    48。  Writing  ODBC  Setup   and  Administration  Programs   for  MFC   Database 



                         Applications 



                    49。   MFC/OLE MBCS to Unicode Translation Layer (MFCANS32) 



                    50。   MFC/OLE mon Dialogs (MFCUIx32) 



                    51。   Using CTL3D Now and in the Future 



                    52。  Writing Windows 95 Applications with MFC 3。1 



                    53。  Custom DFX Routings for DAO Database Classes 



                    54。  Calling DAO Directory while Using MFC DAO Classes 



                    55。   Migrating MFC ODBC Database Classes Application to MFC DAO Classes 



                    56。   Installation of MFC ponents 



                    57。   Localization of MFC ponents 



                    58。   MFC Module State Implementation 



                    59。   Using MFC MBCS/Unicode Convertion Macros 



                    60。  The New Windows mon Controls 



                    61。  ON_NOTIFY and WM_NOTIFY Messages 



                    62。   Message Reflection for Windows Controls 



                    63。   Debugging Internet Extension DLLs 



                    64。  Apartment…Model Threading in OLE Controls 



                    65。   Dual…Interface Support for OLE Automation Servers 



                    66。  mon MFC 3。x to 4。0 Porting Issues 



                    67。   Database Access from an ISAPI Server Extension 



                    68。   Performing Transactions with the Microsoft Access 7 ODBC Driver 



                    69。   Processing   HTML   Forms   Using   Internet   Server   Extension   DLLs   and 



                         mand Handlers 



                    以下是MFC Tech Notes 的性质分类: 



                    ■MFC and Windows 



                    TN001: Window Class Registration 



                    TN003: Mapping of Windows Handles to Objects 



                    TN012: Using MFC with Windows 3。1 Robustness Features 



                    TN015: Windows for Pen 



                    TN017: Destroying Window Objects 



230 


…………………………………………………………Page 293……………………………………………………………

                                                 第4章    Visual C++  整合開發環境 



TN034: Writing a Windows 3。0 patible MFC Application 

TN051: Using CTL3D Now and in the Future 



TN052: Writing Windows 95 Applications with MFC3。1 



■MFC Architecture 



TN002: Persistent Object Data Format 



TN004: C++ Template Tool 



TN006: Message Maps 



TN016: Using C++ Multiple Inheritance with MFC 



TN019: Updating Existing MFC Applications to MFC 3。0 



TN021: mand and Message Routing 



TN022: Standard mands Implementation 



TN025: Document; View; and Frame Creation 



TN026: DDX and DDV Routines 



TN029: Splitter Windows 



TN030: Customizing Printing and Print Preview 



TN031: Control Bars 



TN032: MFC Exception Mechanism 



TN037: Multithreaded MFC 2。1 Applications 



TN044: MFC Support for DBCS 



TN046: menting Conventions for the MFC Classes 



TN058: MFC Module State Implementation 



TN059: Using MFC MBCS/Unicode Conversion Macros 



TN066: mon MFC 3。x to 4。0 Porting Issues 



■MFC Controls 



TN014: Custom Controls 



TN027: Emulation Support for Visual Basic Custom Controls 



TN060: Windows mon Controls 



TN061: ON_NOTIFY and WM_NOTIFY Messages 



TN062: Message Reflection for Windows Controls 



■MFC Database 



                                                                                  231 


…………………………………………………………Page 294……………………………………………………………

                   第篇    欲善工事先利其器 



                   TN042: ODBC Driver Developer Remendations 

                   TN043: RFX Routines 



                   TN045: MFC/Database Support for Long Varchar/Varbinary 



                   TN047: Relaxing Database Transaction Requirements 



                   TN048:  Writing  ODBC  Setup  and  Administration  Programs  for  MFC  Database 



                      Applications 



                   TN053: Custom DFX Routines for MFC DAO Classes 



                   TN054: Calling DAO Directly While Using MFC DAO Classes 



                   TN055: Migrating MFC ODBC Database Class Applications to MFC DAO Classes 



                   TN068: Performing Transactions with the Microsoft Access 7 ODBC Driver 



                   ■MFC Debugging 



                   TN007: Debugging Trace Options 



                   ■MFC DLLs 



                   TN011: Using MFC as Part of a DLL 



                   TN033: DLL Version of MFC 



                   TN056: Installation of MFC ponents 



                   TN057: Localization of MFC ponents 



                   ■MFC OLE 



                   TN008: MFC OLE Support 



                   TN018: Migrating OLE Applications from MFC 1。0 to MFC 2。0 



                   TN038: MFC/OLE IUnknown Implementation 



                   TN039: MFC/OLE Automation Implementation 



                   TN040: MFC/OLE In…Place Resizing and Zooming 



                   TN041: MFC/OLE1 Migration to MFC/OLE2 



                   TN049: MFC/OLE MBCS to Unicode Translation Layer (MFCANS32) 



                   TN050: MFC/OLE mon Dialogs (MFCUIx32) 



                   TN064: Apartment…Model Threading in OLE Controls 



                   TN065: Dual…Interface Support for OLE Automation Servers 



232 


…………………………………………………………Page 295……………………………………………………………

                                                   第4章    Visual C++  整合開發環境 



■MFC Resources 



TN020: ID Naming and Numbering Conventions 



TN023: Standard MFC Resources 



TN024: MFC…Defined Messages and Resources 



TN028: Context…Sensitive Help Support 



TN035: Using Multiple Resource Files and Header Files with Visual C++ 



TN036: Using CFormView with AppWizard and ClassWizard 



■MFC Internet 



TN063: Debugging Internet Extension DLLs 



TN067: Database Access from an ISAPI Server Extension 



TN069:  Processing  HTML  Forms  Using  Internet  Server  Extension  DLLs  and 



   mand Handlers 



                                                                                    233 


…………………………………………………………Page 296……………………………………………………………

                   第篇    欲善工事先利其器 



             四个重要的工具 



                   完全依赖整合环境,丢掉PE2            (或其它什么老古董),这是我的良心建议。也许各个工 



                   具的学习过程会有些阵痛,但代价十分值得。我们先对最重要的四个工具作全盘性了解, 



                   再进去巡幽访胜一番。你总要先强记一下哪个工具做什么用,别把冯京当马凉,张飞战 



                   岳飞,往后的文字看起来才会顺畅。 



                   图4…4 是MFC 程序的设计流程。 



                                                    Visual C++ 

                                                        IDE 



                                                        。CPP    。DSW 

                                                。DEF 

                                                         。H     。DSP 



                                                    Source files 



                                      Create                              Build          Your 

                     AppWizard 

                                                    ClassWizard                      Application 



                                                。ICO    。RC     。BMP 



                                                    Resource files 



                                                   Resource Editor 



                                              图4…4 MFC 程序的开发流程 



234 


…………………………………………………………Page 297……………………………………………………………

                                     第4章    Visual C++  整合開發環境 



■  Visual C++ 整合开发环境(IDE):你可以从中明显地或隐喻地激活其它工具 



  如AppWizard 和ClassWizard;你可以设定各种工具、编译并联结程序、激活 



  除错器、激活文字编辑器、浏览类别阶层。。。。 



■  AppWizard :这是一个程序代码产生器。基于application framework  的观念,相 



  同类型(或说风格)的MFC 程序一定具备相同的程序骨干,AppWizard 让你 



  挑选菜色(利用鼠标圈圈选选),也为你把菜炒出来(产生各种必要文件)。 



  别忘记,化学反应是不能够还原的,菜炒好了可不能反悔(只能加油添醋), 



  所以下手前需三思…每一个project 使用AppWizard  的机会只有一次。 



■  Resource Editor :这是一个总合资源编辑器,RC 档内的各种资源它统统都有办 



  法处理。Resource Editor 做出来的各类资源与你的程序代码之间如何维系关系? 



  譬如说对话框中的一个控制组件被按下后程序该有什么反应? 这就要靠 



  ClassWizard 搭起鹊桥。 



■  ClassWizard :AppWizard 制作出来的程序骨干是「起手无悔」的,接下来你只 



  能够在程序代码中加油添醋(最重要的工作是加上自己的成员变量并改写虚拟函 



  式),或搭起消息与程序代码之间的鹊桥(建立Message Map ),这全得仰仗 



  ClassWizard 。以一般文字编辑器直接修改程序代码当然也可以,但你的思维必须 



  非常缜密才不会挂一漏万。本书第四篇,当我们逐渐发展一个实用程序,你就 



  会看到ClassWizard 的好处。 



                                                               235 


…………………………………………………………Page 298……………………………………………………………

              第篇    欲善工事先利其器 



         内务府总管:Visual C++ 整合开发环境 



              做为一个总管,要处理的大大小小事务很多。本章并不是Visual C++  的完整使用手册, 



              并不做细部操作解说(完整手册可参考Online Help 中的Visual C++ User's Guide)。基 



              本上,如果你一边看这些文字说明一边实际玩玩这些工具,马上会有深刻的印象。 



              以功能菜单来分类,大致上Visual C++ 整合环境有以下功能: 



             ■ File 在此开启或储存文件。文字文件开启于一个文字编辑器中,这个编辑器对 



               程序的撰写饶有助益,因为不同类型的关键词会以不同颜色标示。如果你新开 



               启的是一个project ,AppWizard 就会暗自激活
返回目录 上一页 下一页 回到顶部 9 10
快捷操作: 按键盘上方向键 ← 或 → 可快速上下翻页 按键盘上的 Enter 键可回到本书目录页 按键盘上方向键 ↑ 可回到本页顶部!
温馨提示: 温看小说的同时发表评论,说出自己的看法和其它小伙伴们分享也不错哦!发表书评还可以获得积分和经验奖励,认真写原创书评 被采纳为精评可以获得大量金币、积分和经验奖励哦!