亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ch17.htm

?? /// //Visual C++ 6.0 21天自學(xué)教程
?? HTM
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><HTML><HEAD>	<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"><SCRIPT LANGUAGE="JavaScript"><!--function popUp(pPage) { var fullURL = document.location; var textURL = fullURL.toString(); var URLlen = textURL.length; var lenMinusPage = textURL.lastIndexOf("/"); lenMinusPage += 1; var fullPath = textURL.substring(0,lenMinusPage); popUpWin = window.open('','popWin','resizable=yes,scrollbars=no,width=525,height=394'); figDoc= popUpWin.document; zhtm= '<HTML><HEAD><TITLE>' + pPage + '</TITLE>'; zhtm += '</head>'; zhtm += '<BODY bgcolor="#FFFFFF">'; zhtm += '<IMG SRC="' + fullPath + pPage + '">'; zhtm += '<P><B>' + pPage + '</B>'; zhtm += '</BODY></HTML>'; window.popUpWin.document.write(zhtm); window.popUpWin.document.close(); // Johnny Jackson 4/28/98 }//-->                                                                </SCRIPT><link rel="stylesheet" href="/includes/stylesheets/ebooks.css">	<META NAME="GENERATOR" Content="Symantec Visual Page Mac 1.1.1">	<TITLE>Teach Yourself Visual C++ 6 in 21 Days -- Ch 17 -- Sharing Your Functionality with Other Applications--Creating DLLs</TITLE></HEAD><BODY TEXT="#000000" BGCOLOR="#FFFFFF"><H1 ALIGN="CENTER"><IMG SRC="../button/sams.gif" WIDTH="171" HEIGHT="66" ALIGN="BOTTOM"BORDER="0"><BR>Teach Yourself Visual C++ 6 in 21 Days</H1><CENTER><P><A HREF="../ch16/ch16.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../ch18/ch18.htm"><IMGSRC="../button/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"BORDER="0"></A><A HREF="../index.htm"><IMG SRC="../button/contents.gif" WIDTH="128"HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> <HR></CENTER><H1 ALIGN="CENTER">- 17 -<BR>Sharing Your Functionality with Other Applications--Creating DLLs</H1><H1></H1><UL>	<LI><A HREF="#Heading1">Why Create DLLs?</A>	<UL>		<LI><A HREF="#Heading2">Creating and Using DLLs</A>		<LI><A HREF="#Heading3">Designing DLLs</A>	</UL>	<LI><A HREF="#Heading4">Creating and Using an MFC Extension DLL</A>	<UL>		<LI><A HREF="#Heading5">Creating the MFC Extension DLL</A>		<LI><A HREF="#Heading6">Adapting the Test Application</A>		<LI><A HREF="#Heading7">Changing the DLL</A>	</UL>	<LI><A HREF="#Heading8">Creating and Using a Regular DLL</A>	<UL>		<LI><A HREF="#Heading9">Creating the Regular DLL</A>		<LI><A HREF="#Heading10">Adapting the Test Application</A>	</UL>	<LI><A HREF="#Heading11">Summary</A>	<LI><A HREF="#Heading12">Q&amp;A</A>	<LI><A HREF="#Heading13">Workshop</A>	<UL>		<LI><A HREF="#Heading14">Quiz</A>		<LI><A HREF="#Heading15">Exercises</A>	</UL></UL><P><HR SIZE="4"><BR>Yesterday you learned how you could create a set of functionality that might be usefulfor multiple applications and how you could package it in a library file that couldbe linked into those applications. Today you will learn how to do this same thing,only with a much more dynamic package.</P><P>Often, a family of applications will have some functionality in common. When youplace this shared functionality into DLLs instead of library modules, all the applicationscan use the same functionality with only a single copy of the functionality distributedin the form of DLLs, instead of duplicating the same functionality in each of theapplications. This method saves disk space on any systems where the applicationsare installed.</P><P>Today, you will learn</P><P><UL>	<LI>About the different types of DLLs that you can create with Visual C++ and how	to determine which type best suits your needs.	<P>	<LI>How to build two of these types of DLLs and the different approaches for the	various DLL types.	<P>	<LI>How to use the functionality for both of these types of DLLs in a Visual C++	application.	<P>	<LI>How to determine when an application needs to be relinked when you make modifications	to a DLL that is used by the application.</UL><H2><A NAME="Heading1"></A>Why Create DLLs?</H2><P>Dynamic link libraries (DLL) were introduced by Microsoft back in the early daysof Windows. DLLs are similar to library modules in that they both contain sets offunctionality that have been packaged for use by applications. The difference iswhen the applications link to the library. With a library module (LIB), the applicationis linked to the functionality in the library during the compile and build process.The functionality contained in the library file becomes part of the application executablefile. With a DLL, the application links to the functionality in the library filewhen the application is run. The library file remains a separate file that is referencedand called by the application.</P><P>There are several reasons for creating DLLs instead of library module files. First,you can reduce the size of the application executable files by placing functionalitythat is used by multiple applications into DLLs that are shared by all of the applications.You can update and modify functionality in the DLLs without having to update theapplication executable (assuming that the exported interface for the DLL doesn'tchange). Finally, you can use DLLs with just about any other Windows programminglanguage, which makes your functionality available to a wider number of programmers,not just fellow Visual C++ programmers.</P><P><H3><A NAME="Heading2"></A>Creating and Using DLLs</H3><P>DLLs are library files with compiled code that can be used by other applications.The DLLs expose certain functions and classes to these applications by exportingthe function. When a function is exported, it is added to a table that is includedin the DLL. This table lists the location of all exported functions contained inthe DLL, and it is used to locate and call each of these functions. Any functionsthat are not exported are not added to this table, and they cannot be seen or calledby any outside application or DLL.</P><P>An application can call the functions in the DLL in two ways. The more involvedmethod of calling these functions is to look up the location of the desired functionin the DLL and get a pointer to this function. The pointer can then be used to callthe function.</P><P>The other, much easier way (and the only way that you'll use in any of the examplesin this book) is to link the application with the LIB file that is created with theDLL. This LIB file is treated by the linker as a standard library file, just likethe one that you cre-ated yesterday. However, this LIB file contains stubs for eachof the exported functions in the DLL. A stub is a pseudo-function that has the samename and argument list as the real function. In the interior of the function stubis a small amount of code that calls the real function in the DLL, passing all ofthe arguments that were passed to the stub. This allows you to treat the functionsin the DLL as if they were part of the application code and not as a separate file.</P><BLOCKQUOTE>	<P><HR><STRONG>NOTE:</STRONG> The LIB file for a DLL is automatically created for the DLL during	the compiling of the DLL. There is nothing extra that you need to do to create it.<HR>	<P><HR><STRONG>TIP:</STRONG> Not only is it easier to create your applications using the LIB files	for any DLLs that you will be using, but also it can be safer when running the application.	When you use the LIB files, any DLLs that are used by your application are loaded	into memory the moment the application is started. If any of the DLLs are missing,	the user is automatically informed of the problem by Windows, and your application	does not run. If you don't use the LIB files, then you are responsible for loading	the DLL into memory and handling any errors that occur if the DLL cannot be found.<HR></BLOCKQUOTE><P>There are two types of DLLs that you can easily create using Visual C++. Thesetwo types are MFC extension DLLs and regular DLLs.</P><BLOCKQUOTE>	<P><HR><STRONG>NOTE:</STRONG> You can create other types of DLLs using Visual C++. All these other	types of DLLs involve a significant amount of ActiveX functionality, so they are	beyond the scope of this book. If you need to build ActiveX in-process server DLLs,	or other types of ActiveX DLLs, I recommend that you find an advanced book on Visual	C++ that provides significant coverage for these topics.<HR></BLOCKQUOTE><H4>MFC Extension DLLs</H4><P>MFC DLLs are the easiest to code and create because you can treat them just likeany other collection of classes. For any classes that you want to export from theDLL, the only thing that you need to add is the AFX_EXT_CLASS macro in the classdeclaration, as follows:</P><P><PRE>class AFX_EXT_CLASS CMyClass{...};</PRE><P>This macro exports the class, making it accessible to Visual C++ applications.You need to include this macro in the header file that is used by the applicationsthat will use the DLL, where it will import the class from the DLL so that it canbe used.</P><P>The one drawback to creating MFC extension DLLs is that they cannot be used byany other programming languages. They can be used with other C++ compilers as longas the compiler supports MFC (such as with Borland's and Symantec's C++ compilers).</P><P><H4>Regular DLLs</H4><P>The other type of DLL is a regular DLL. This type of DLL exports standard functionsfrom the DLL, not C++ classes. As a result, this type of DLL can require a littlemore thought and planning than an MFC extension DLL. Once inside the DLL, you canuse class

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本大道久久a久久综合婷婷 | 一本久久a久久免费精品不卡| 欧美成人乱码一区二区三区| 丝袜美腿一区二区三区| 欧美精品日韩综合在线| 亚洲午夜久久久久中文字幕久| 欧美中文字幕一区| 日韩精品91亚洲二区在线观看| 欧美日韩国产高清一区| 看片的网站亚洲| 国产女人18毛片水真多成人如厕 | 欧美剧在线免费观看网站| 亚洲一二三级电影| 欧美sm极限捆绑bd| 成人av免费在线观看| 亚洲综合区在线| 精品久久久久久久人人人人传媒| 国产综合色视频| 亚洲欧美国产毛片在线| 欧美调教femdomvk| 久久99精品视频| 国产精品久久影院| 欧美日韩国产小视频| 国产精品综合一区二区| 亚洲天堂中文字幕| 这里只有精品视频在线观看| 国产精品一级在线| 亚洲一区二三区| 久久久久久黄色| 在线免费观看一区| 国产一区二区三区在线看麻豆| 国产精品超碰97尤物18| 日韩你懂的在线观看| 91免费视频观看| 精品在线一区二区| 亚洲国产中文字幕在线视频综合| 久久久九九九九| 欧美日韩国产高清一区二区三区 | 337p粉嫩大胆色噜噜噜噜亚洲| 国产视频一区在线观看| 亚洲人123区| 91麻豆免费看| 国产精品美女久久久久久久久| 毛片一区二区三区| 欧美午夜不卡视频| 丝袜美腿亚洲综合| av电影在线不卡| 国产精品三级视频| 国产98色在线|日韩| 91精品国产综合久久精品图片| 欧美日韩国产经典色站一区二区三区 | 欧美日韩中文字幕一区| 国产大陆精品国产| 免费三级欧美电影| 亚洲主播在线播放| 日韩精品专区在线影院重磅| 亚洲蜜臀av乱码久久精品| 色诱亚洲精品久久久久久| 亚洲成人av福利| 国产精品久久久久久亚洲毛片| 日韩一级黄色大片| 欧美日韩免费一区二区三区| 波多野结衣精品在线| 韩国女主播一区| 久久激情五月激情| 蜜桃精品在线观看| 日韩中文字幕不卡| 亚洲成人一区二区| 一区二区视频免费在线观看| 国产精品视频麻豆| 国产欧美一区二区三区沐欲| 久久综合一区二区| 亚洲精品一区在线观看| 精品久久久影院| 日韩欧美不卡在线观看视频| 欧美一区二区免费视频| 欧美日韩三级一区| 欧美日韩高清在线播放| 91麻豆精品国产91久久久资源速度 | 精品伦理精品一区| 精品美女一区二区| 久久九九国产精品| 国产色一区二区| 欧美国产一区视频在线观看| 国产三级久久久| 国产精品你懂的在线欣赏| 国产精品女主播av| 一二三四区精品视频| 午夜亚洲福利老司机| 日韩成人一区二区三区在线观看| 日韩在线a电影| 久久不见久久见免费视频7| 国产精品资源在线| 99re在线视频这里只有精品| 久久国产尿小便嘘嘘| 亚洲综合色婷婷| 中文字幕在线观看不卡| 久久久五月婷婷| 日本一区二区三区在线不卡| 精品欧美一区二区在线观看 | 久久 天天综合| 捆绑变态av一区二区三区| 激情欧美一区二区三区在线观看| 黑人精品欧美一区二区蜜桃| 秋霞av亚洲一区二区三| 久久99蜜桃精品| 成人伦理片在线| 欧美亚洲国产一区二区三区| 91精品国产综合久久蜜臀| 精品99一区二区| 自拍av一区二区三区| 亚瑟在线精品视频| 国产乱色国产精品免费视频| 99精品在线观看视频| 欧美日韩一区久久| 久久蜜臀精品av| 亚洲一区二区三区在线| 精品一区二区三区久久久| 99久久国产综合精品女不卡| 欧美精品日韩一本| 亚洲国产成人在线| 亚洲va欧美va天堂v国产综合| 国产美女久久久久| 欧美三片在线视频观看| 久久青草国产手机看片福利盒子| 亚洲精品美国一| 国产一区二区不卡在线| 在线观看免费视频综合| 久久久精品天堂| 丝袜国产日韩另类美女| jlzzjlzz亚洲女人18| 欧美一区二区女人| 亚洲一区二区三区四区不卡| 粉嫩绯色av一区二区在线观看| 欧美老肥妇做.爰bbww视频| 椎名由奈av一区二区三区| 国产一区二区三区不卡在线观看| 欧洲视频一区二区| 国产精品美日韩| 精品亚洲免费视频| 欧美日韩精品专区| 亚洲色大成网站www久久九九| 久久精品国产精品青草| 欧美日韩国产天堂| 一区二区三区欧美亚洲| 高清在线观看日韩| 国产亚洲精品资源在线26u| 天天av天天翘天天综合网色鬼国产 | 欧美成人性战久久| 午夜精品福利一区二区三区av| 99re成人精品视频| 日本一区二区三区四区| 久久99久久99| 日韩欧美成人一区二区| 视频一区免费在线观看| 欧美在线视频你懂得| 1区2区3区欧美| 成人激情动漫在线观看| 国产日韩欧美不卡在线| 国产一区二区三区在线观看免费视频 | 久久久亚洲午夜电影| 久久这里都是精品| av网站一区二区三区| 亚洲国产日产av| 精品粉嫩超白一线天av| 成人激情小说网站| 亚洲美女一区二区三区| 欧美日韩在线不卡| 国产精品一级片在线观看| 日本一区二区三区国色天香 | 国产suv一区二区三区88区| 丁香桃色午夜亚洲一区二区三区| 26uuu国产电影一区二区| 久久av资源网| wwwwxxxxx欧美| 国产成人免费在线观看| 国产三级久久久| 91在线观看污| 亚洲一级二级三级| 欧美人伦禁忌dvd放荡欲情| 婷婷国产在线综合| 日韩精品资源二区在线| 国产精品正在播放| 国产精品成人一区二区三区夜夜夜 | 国产女主播一区| 91污在线观看| 亚洲成人动漫在线观看| 91精品欧美综合在线观看最新| 麻豆国产欧美一区二区三区| 久久影院视频免费| 成人免费视频网站在线观看| 国产精品免费视频观看| 在线观看视频一区二区| 蜜臂av日日欢夜夜爽一区| 久久九九久久九九| 色婷婷激情久久| 麻豆精品新av中文字幕| 久久精品视频一区二区| 一本色道久久加勒比精品| 日韩国产欧美一区二区三区|