外文翻譯MFC程序設(shè)計與C++相關(guān)技術(shù)_第1頁
外文翻譯MFC程序設(shè)計與C++相關(guān)技術(shù)_第2頁
外文翻譯MFC程序設(shè)計與C++相關(guān)技術(shù)_第3頁
外文翻譯MFC程序設(shè)計與C++相關(guān)技術(shù)_第4頁
外文翻譯MFC程序設(shè)計與C++相關(guān)技術(shù)_第5頁
已閱讀5頁,還剩4頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、畢業(yè)設(shè)計(論文)外文翻譯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程序設(shè)計與c+相關(guān)技術(shù)mfc,微軟基礎(chǔ)類(microsoft foundation classes),實際上是微軟提供的,用于在c+環(huán)境下編寫應(yīng)用程序的一個框架和引擎

39、,vc+是windows下開發(fā)人員使用的專業(yè)c+ sdk(sdk,standard software develop kit,專業(yè)軟件開發(fā)平臺),mfc就是掛在它之上的一個輔助軟件開發(fā)包,mfc作為與vc+血肉相連的部分(注意c+和vc+的區(qū)別:c+是一種程序設(shè)計語言,是一種大家都承認的軟件編制的通用規(guī)范,而vc+只是一個編譯器,或者說是一種編譯器+源程序編輯器的ide,ws,platform,這跟pascal和delphi的關(guān)系一個道理,pascal是delphi的語言基礎(chǔ),delphi使用pascal規(guī)范來進行win下應(yīng)用程序的開發(fā)和編譯,卻不同于basic語言和vb的關(guān)系,basic語言

40、在vb開發(fā)出來被應(yīng)用的年代已經(jīng)成了basic語言的新規(guī)范,vb新加的basic語言要素,如面向?qū)ο蟪绦蛟O(shè)計的要素,是一種性質(zhì)上的飛躍,使vb既是一個ide,又成長成一個新的程序設(shè)計語言),mfc同bc+集成的vcl一樣是一個非外掛式的軟件包,類庫,只不過mfc類是微軟為vc+專配的. mfc是win api與c+的結(jié)合,api,即微軟提供的windows下應(yīng)用程序的編程語言接口,是一種軟件編程的規(guī)范,但不是一種程序開發(fā)語言本身,可以允許用戶使用各種各樣的第三方(如我是一方,微軟是一方,borland就是第三方)的編程語言來進行對windows下應(yīng)用程序的開發(fā),使這些被開發(fā)出來的應(yīng)用程序能在wi

41、ndows下運行,比如vb,vc+,java,delhpi編程語言函數(shù)本質(zhì)上全部源于api,因此用它們開發(fā)出來的應(yīng)用程序都能工作在windows的消息機制和繪圖里,遵守windows作為一個操作系統(tǒng)的內(nèi)部實現(xiàn),這其實也是一種必要,微軟如果不提供api,這個世上對windows編程的工作就不會存在,微軟的產(chǎn)品就會迅速從時尚變成垃圾,上面說到mfc是微軟對api函數(shù)的專用c+封裝,這種結(jié)合一方面讓用戶使用微軟的專業(yè)c+ sdk來進行windows下應(yīng)用程序的開發(fā)變得容易,因為mfc是對api的封裝,微軟做了大量的工作,隱藏了好多程序開發(fā)人員在windows下用c+ & mfc編制軟件時的大量內(nèi)節(jié),

42、如應(yīng)用程序?qū)崿F(xiàn)消息的處理,設(shè)備環(huán)境繪圖,這種結(jié)合是以方便為目的的,必定要付出一定代價(這是微軟的一向作風),因此就造成了mfc對類封裝中的一定程度的的冗余和迂回,但這是可以接受的. 最后要明白mfc不只是一個功能單純的界面開發(fā)系統(tǒng),它提供的類絕大部分用來進行界面開發(fā),關(guān)聯(lián)一個窗口的動作,但它提供的類中有好多類不與一個窗口關(guān)聯(lián),即類的作用不是一個界面類,不實現(xiàn)對一個窗口對象的控制(如創(chuàng)建,銷毀),而是一些在windows(用mfc編寫的程序絕大部分都在windows中運行)中實現(xiàn)內(nèi)部處理的類,如數(shù)據(jù)庫的管理類等,學(xué)習(xí)中最應(yīng)花費時間的是消息和設(shè)備環(huán)境,對c+和mfc的學(xué)習(xí)中最難的部分是指針,c+面

43、向?qū)ο蟪绦蛟O(shè)計的其它部分,如數(shù)據(jù)類型,流程控制都不難,建議學(xué)習(xí)數(shù)據(jù)結(jié)構(gòu)c+版。 mfc是微軟封裝了的api。什么意思呢?windows作為一個提供功能強大的應(yīng)用程序接口編程的操作系統(tǒng),的確方便了許多程序員,傳統(tǒng)的win32開發(fā)(直接使用windows的接口函數(shù)api)對于程序員來說非常的困難,因為,api函數(shù)實在太多了,而且名稱很亂,從零構(gòu)架一個窗口動輒就是上百行的代碼。mfc是面向?qū)ο蟪绦蛟O(shè)計與application framework的完美結(jié)合,他將傳統(tǒng)的api進行了分類封裝,并且為你創(chuàng)建了程序的一般框架, mfc是對windowsapi的封裝,大大簡化了我們的工作;學(xué)vc主要就是要學(xué)mf

44、c,大約有100多個類,但常用的也就二三十個。應(yīng)該象背4級單詞一樣將這些常用類搞懂;當然不要死記,要通過看幫助、看例子、動手練習(xí)來學(xué)會它們;而且,并非每個類的內(nèi)部的所有函數(shù)都要學(xué)會,要日積月累。如果真的想成為高手,做個筆記本把自己認為重要的類、函數(shù)記下來,隨時學(xué)習(xí),也是很好的突擊方法。編程優(yōu)勢隨著編程語言的推陳出新,mfc一些缺點日益突出。最重要的就是入門門檻相對其他語言要高,而且同樣完成一個任務(wù)代碼量相對較多。而原有的優(yōu)勢如運行速度快等,也因為其他編程語言的日臻完善和個人電腦的運算速度增加而顯得不那么突出。mfc似乎江河日下。但是mfc真的沒有任何優(yōu)勢了嗎?不是,面對底層程序,它能很輕松的與windows api或驅(qū)動程序結(jié)合,就是在自己的代碼中直接使用api函數(shù),而api和驅(qū)動程序的資料都是以c語言為基礎(chǔ)的,這使得vc程序員能夠更輕松的使用windows api。這樣造成了一個很有意思的現(xiàn)象,即入門時vc程序員要付出更多的努力來學(xué)習(xí),但是一旦掌握后,開發(fā)其他領(lǐng)域的程序或使用第三方軟件時,如工業(yè)控制類的程序,由于底層的程序都是用c語言編寫,反倒是vc程序員能夠更快的掌握該領(lǐng)域的編程技術(shù)。而很多其他的編程語言甚至找不到相關(guān)的資料。這就說明vc(mfc)實際上是一種入門困難,但是擴展學(xué)習(xí)卻很輕松的語言框架。如果既

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論