版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、毕业设计(论文)外文翻译mfc programming and c + + related technologiesmfc, microsoft foundation classes (microsoft foundation classes), is actually provided by microsoft for the c + + environment for writing applications in a framework and engine, vc + + is to windows, developers use professional c + + sdk (sdk
2、, standard software develop kit, professional software development platform), mfc is hung on it a supporting software development kit, mfc, as with the vc + + flesh and blood portion (note c + + and vc + + differences: c + + is a programming language, is a we acknowledge the preparation of the gener
3、al specification of software, and vc + + is a compiler, or a compiler + source code editor ide, ws, platform, which pascal and delphis relationship with a truth, pascal was the language of delphi basic, delphi pascal specification for use under win application development and compilation, but vb is
4、different from the relationship between language and basic, basic language is developed in vb applications language has become the new norm basic, vb newly added basic language elements, such as the elements of object-oriented programming is a qualitative leap forward, so that both a vb ide, and gro
5、w into a new programming language), mfc integration with bc + + vcl is a non-plug type as package, class library, but microsoft mfc class is designed for the distribution of vc + + .win api and mfc is a combination of c + +, api, that microsofts windows, the application programming language interfac
6、e, is a software programming specifications, but is not a programming language itself, can allow users to use a variety of third parties (such as the i side, microsoft is a party, borland is the third party to) programming language for applications on windows, the development of these applications w
7、ere developed to run in windows, such as vb, vc + +, java , delhpi essentially all of the programming language function from the api, so using them to develop applications that can work out the message in the windows system and graphics, the compliance with windows as an operating systems internal i
8、mplementation, it is also a necessity, microsoft if you do not provide api, this world of windows programming job would not exist, microsofts product will quickly become a garbage from the fashion, the above mentioned api function, mfc is a microsoft proprietary c + + package, which allows users to
9、combine the one hand, microsofts professional c + + sdk for windows, application development easier, because mfc is the api package, microsoft has done a lot of work, hiding a lot of application developers in windows, using c + + & mfc preparation software for a large number of the section, such as
10、the implementation of the message processing applications, equipment, environmental graphics, this combination is convenient for the purpose, we must pay the price (which is microsofts style has always been), and therefore created a mfc class in the package of a certain degree of redundancy and circ
11、uitous, but this is acceptable .finally, understand that mfc is not just a function of simple interface development system, which provides most of the classes used to interface development, associated with a window of the action, but it provides a lot of class in the class is not associated with a w
12、indow that the categories the role is not an interface class does not implement the control of a window object (such as the creation, destruction), but some in windows (using mfc vast majority of programs written to run in windows) to implement the internal processing of the class, such as database
13、management etc., the study should be most time consuming is the message and the device environment, c + + and mfc to learn the most difficult part is the pointer, c + + object-oriented programming in other parts, such as data types, flow control both is not difficult, it is recommended to learn c +
14、+ version of the data structure.mfc encapsulates microsofts api. what does that mean? as a provider of powerful windows application programming interface to the operating system, programmers do a lot of convenience, the traditional win32 development (direct interface functions with windows api) for
15、programmers is very difficult because, api functions too more, and the name of the mess, from zero to a window frame is easily hundreds of lines of code. mfc is the object-oriented programming and the perfect combination of application framework, he would have been classified in the traditional api
16、package, and created a program for you general frameworkmfc is windowsapi package, which greatly simplifies our work; learn vc is mainly to learn mfc, there are about 100 classes, but also commonly used in twenty or thirty. back four words should be the same as those commonly used in class get to kn
17、ow; of course, do not memorize, to help by looking to see examples, hands-on exercises to learn them; moreover, not every class have to learn all the functions within, to accumulate. if you really want to be a master, to be a laptop think it is important to their classes, functions, down, ready to l
18、earn, but also a good spot method.programming advantages with the innovation of programming languages, mfc shortcomings become increasingly prominent. the most important entry barrier is higher relative to other languages, but also to complete a task relatively large amount of code. the original adv
19、antages, such as running speed, etc., but also because of other programming languages and personal computers continue to improve computing speed increases appear less prominent. mfc seems bad to worse. mfc is really no advantage, but it? no, the face of the underlying process, it is very easy with t
20、he combination of windows api or driver is in your own code to use api functions directly, while the api and driver information are based on c language-based, which makes vc programmers to more easily use windows api. this has a very interesting phenomenon, that is, when the vc started to pay more t
21、o the programmer to learn, but once mastered, the development of other areas of the program or using third-party software, such as industrial control procedures, the underlying the programs are written in c language, but rather vc programmers can quickly grasp the field of programming. and many othe
22、r programming languages can not even find relevant information. this shows that vc (mfc) is actually an entry difficult, but very easy to learn the language extension framework. if only limited to one area, then vc is no advantage at all, but if you develop a new field of application or the program
23、involves a number of application areas, it can reduce the frequency of repetition and difficulty, vc (mfc) of the benefits will immediately apparent.language development c + + language development can be divided into three stages: the first stage, from 80 to 1995. this phase is basically c + + langu
24、age is the traditional type of object-oriented language, and by virtue of the efficiency of close to c language, developed for use in the industrial sector accounts for a significant language share; the second phase from 1995 to 2000, this stage as the standard template library (stl) and later the b
25、oost libraries such as the emergence of generic programming in c + +, the proportion of occupied more and more sexual. of course, the same as java, c # and other languages and the emergence of large-scale hardware prices drop, c + + has been some impact; the third stage, from 2000 to date, due to lo
26、ki, mpl and other libraries as the representative of generative programming and template metaprogramming there, c + + appeared in the history and development of a new peak, and the emergence of these new technologies and the original technology integration, so that c + + has become the main programm
27、ing language of the most complex one. c + + getting started c + + is a language, merely its syntax, features, standard library already is a very advanced courses, so the time to start learning, we must first lay a solid foundation. there are a lot of the visual c + + book, although it may take 1-2 c
28、hapters to introduce the basic characteristics of c + +, but that will not let you get started. therefore, beginners should choose to learn c + + for c + + language itself, books, and can not be for the visual c + +, mfc or windows apis. learning c + + should be easy to difficult, step by step. ofte
29、n said that before learning c + + should learn c language before. in fact it is not necessary, c + + and c language, while a relationship, it is still two different languages. of course, before learning c + + programming language to learn than others is very good. c + + that make learning faster, af
30、ter all, a lot of computer language concepts are interlinked. as for the zero-based beginners, you should stop and do not become impatient. to become a master of c + + is not so easy to take great efforts. from the introductory textbook of choice, mainly to see the learners own situation. if you hav
31、e had high-level language learning experience, it is recommended that use of transplantation and hemopurification the c + + programming. note that 2004 edition, 2006 edition of the book is a castrated version, up to the object-oriented. although c and c + + are similar, but has been said before, c a
32、nd c + + should be used to learn two languages, so that the contents of 06 to a little bit lacking. transplantation and hemopurification 04 edition of this book is more structured, and organized is also very clear. if the basis of other high-level language, then the estimated half a year of c + + wi
33、ll be able to have a understanding of the profile. transplantation and hemopurification teachers book has become the major institutions of higher education textbooks, are more subject to recognized. if you start from the zero-based learning c + +, it is recommended to use pan jiajie of learn c + +.
34、this book is a book in 2008, i heard a student was studying the time to write. book online, download a free electronic version. this book is mainly for beginners, put it is also more interesting to compare those who can interest in learning. so there is no basis for the beginner this book is also a
35、good choice, just want to quickly become the master, may be reading this book is not enough. as for the book after reading the entry, you should see some high-level book. such as the c + + programming language and c + + primer, but also able to stl, mfc, api and other direction. if you are intereste
36、d in other languages, but also to look at c # and java, c + + they are a lot of concepts from grammar and are similar. the design principles of c + + c + + designed as a static type, and c as efficient and portable multi-purpose programming language. c + + designed to support direct and wide variety
37、 of programming styles (procedural programming, data abstraction, object-oriented programming, generic programming). c + + is designed to give programmers more choice, even if the wrong choice could lead to program designers. c + + designed to be compatible as possible with c, whereby a c to c + + f
38、rom the smooth transition. c + + to avoid limited or no general-purpose platform features. c + + does not use the features will bring additional costs. c + + is designed without complex programming environment.-25-mfc程序设计与c+相关技术mfc,微软基础类(microsoft foundation classes),实际上是微软提供的,用于在c+环境下编写应用程序的一个框架和引擎
39、,vc+是windows下开发人员使用的专业c+ sdk(sdk,standard software develop kit,专业软件开发平台),mfc就是挂在它之上的一个辅助软件开发包,mfc作为与vc+血肉相连的部分(注意c+和vc+的区别:c+是一种程序设计语言,是一种大家都承认的软件编制的通用规范,而vc+只是一个编译器,或者说是一种编译器+源程序编辑器的ide,ws,platform,这跟pascal和delphi的关系一个道理,pascal是delphi的语言基础,delphi使用pascal规范来进行win下应用程序的开发和编译,却不同于basic语言和vb的关系,basic语言
40、在vb开发出来被应用的年代已经成了basic语言的新规范,vb新加的basic语言要素,如面向对象程序设计的要素,是一种性质上的飞跃,使vb既是一个ide,又成长成一个新的程序设计语言),mfc同bc+集成的vcl一样是一个非外挂式的软件包,类库,只不过mfc类是微软为vc+专配的. mfc是win api与c+的结合,api,即微软提供的windows下应用程序的编程语言接口,是一种软件编程的规范,但不是一种程序开发语言本身,可以允许用户使用各种各样的第三方(如我是一方,微软是一方,borland就是第三方)的编程语言来进行对windows下应用程序的开发,使这些被开发出来的应用程序能在wi
41、ndows下运行,比如vb,vc+,java,delhpi编程语言函数本质上全部源于api,因此用它们开发出来的应用程序都能工作在windows的消息机制和绘图里,遵守windows作为一个操作系统的内部实现,这其实也是一种必要,微软如果不提供api,这个世上对windows编程的工作就不会存在,微软的产品就会迅速从时尚变成垃圾,上面说到mfc是微软对api函数的专用c+封装,这种结合一方面让用户使用微软的专业c+ sdk来进行windows下应用程序的开发变得容易,因为mfc是对api的封装,微软做了大量的工作,隐藏了好多程序开发人员在windows下用c+ & mfc编制软件时的大量内节,
42、如应用程序实现消息的处理,设备环境绘图,这种结合是以方便为目的的,必定要付出一定代价(这是微软的一向作风),因此就造成了mfc对类封装中的一定程度的的冗余和迂回,但这是可以接受的. 最后要明白mfc不只是一个功能单纯的界面开发系统,它提供的类绝大部分用来进行界面开发,关联一个窗口的动作,但它提供的类中有好多类不与一个窗口关联,即类的作用不是一个界面类,不实现对一个窗口对象的控制(如创建,销毁),而是一些在windows(用mfc编写的程序绝大部分都在windows中运行)中实现内部处理的类,如数据库的管理类等,学习中最应花费时间的是消息和设备环境,对c+和mfc的学习中最难的部分是指针,c+面
43、向对象程序设计的其它部分,如数据类型,流程控制都不难,建议学习数据结构c+版。 mfc是微软封装了的api。什么意思呢?windows作为一个提供功能强大的应用程序接口编程的操作系统,的确方便了许多程序员,传统的win32开发(直接使用windows的接口函数api)对于程序员来说非常的困难,因为,api函数实在太多了,而且名称很乱,从零构架一个窗口动辄就是上百行的代码。mfc是面向对象程序设计与application framework的完美结合,他将传统的api进行了分类封装,并且为你创建了程序的一般框架, mfc是对windowsapi的封装,大大简化了我们的工作;学vc主要就是要学mf
44、c,大约有100多个类,但常用的也就二三十个。应该象背4级单词一样将这些常用类搞懂;当然不要死记,要通过看帮助、看例子、动手练习来学会它们;而且,并非每个类的内部的所有函数都要学会,要日积月累。如果真的想成为高手,做个笔记本把自己认为重要的类、函数记下来,随时学习,也是很好的突击方法。编程优势随着编程语言的推陈出新,mfc一些缺点日益突出。最重要的就是入门门槛相对其他语言要高,而且同样完成一个任务代码量相对较多。而原有的优势如运行速度快等,也因为其他编程语言的日臻完善和个人电脑的运算速度增加而显得不那么突出。mfc似乎江河日下。但是mfc真的没有任何优势了吗?不是,面对底层程序,它能很轻松的与windows api或驱动程序结合,就是在自己的代码中直接使用api函数,而api和驱动程序的资料都是以c语言为基础的,这使得vc程序员能够更轻松的使用windows api。这样造成了一个很有意思的现象,即入门时vc程序员要付出更多的努力来学习,但是一旦掌握后,开发其他领域的程序或使用第三方软件时,如工业控制类的程序,由于底层的程序都是用c语言编写,反倒是vc程序员能够更快的掌握该领域的编程技术。而很多其他的编程语言甚至找不到相关的资料。这就说明vc(mfc)实际上是一种入门困难,但是扩展学习却很轻松的语言框架。如果既
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年度动产融资反担保协议3篇
- 出售单独车库合同范例
- 2024年度文化旅游景区承包经营开发合同3篇
- 隐瞒租赁合同范例
- 顾工合同范例
- 本周工作总结以及工作参考计划5篇
- 2024年度鱼类产品防伪标识合同3篇
- 2024年标准公司股东借款合同样本一
- 安防维修合同范例
- 2024年度地铁车辆涂装工程合同2篇
- 铜及铜合金物理冶金基础-相图、紫铜
- 《我们去看海》阅读答案
- 智慧酒店无人酒店综合服务解决方案
- 考研英语一新题型历年真题(2005-2012)
- 健身房会籍顾问基础培训资料
- 9脊柱与四肢、神经系统检查总结
- 秀场内外-走进服装表演艺术智慧树知到答案章节测试2023年武汉纺织大学
- 【高分复习笔记】王建《现代自然地理学》(第2版)笔记和课后习题详解
- TSGD0012023年压力管道安全技术监察规程-工业管道(高清晰版)
- SMM英国建筑工程标准计量规则中文 全套
- 2023-2024学年浙江省富阳市小学数学四年级上册期末通关题
评论
0/150
提交评论