📄 chap9_4.htm
字号:
<html>
<head>
<title>小 结</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>
<body link="#3973DE" alink="#3973DE">
<font SIZE="5"><b><div align="center"><center>
<table border="0" width="615" cellspacing="0" cellpadding="0">
<tr>
</b><td><div align="center"><center><table border="0" width="615" cellpadding="0" cellspacing="0" height="20">
<tr>
<td width="377" bgcolor="#15397D" height="20"></td>
<td width="238" bgcolor="#000000" height="20"><p align="right"></font><span style="text-decoration: none"><a href="../../index.htm"><font color="#FFFFFF">电脑报Visual
C++网络教程</font></a></span></td>
</tr>
</table>
</center></div><font SIZE="4"><b><p ALIGN="CENTER"></b><font color="#3973DE">小 结</font></font><font SIZE="3"></p>
<p>本章介绍了用户模块的创建和使用。</p>
<blockquote>
<p>用户模块是由用户自己开发的、可以加入到最终用户应用程序中提供某一特定功能的函数和类的集合。</p>
<p>用户模块包括静态连接库和动态连接库两大类:静态连接库将函数的目标代码直接连入到应用程序中;动态连接库只是给出函数入口信息,在调用时访问</font><font FACE="Times New Roman" SIZE="3">DLL</font><font SIZE="3">文件中函数的目标代码。</p>
<p>创建静态连接库:指定工程类型为</font><font FACE="Times New Roman" SIZE="3">Win32 Static Library</font><font SIZE="3">,加入函数声明和定义,并编译和连接。提交函数库时只需要提供函数的</font><font FACE="Times New Roman" SIZE="3">lib</font><font SIZE="3">文件和头文件。要使用静态库,可以将函数库和头文件包含在工程文件中。</p>
<p>创建动态连接库:提供函数定义、声明以及包含</font><font FACE="Times New Roman" SIZE="3">DLL</font><font SIZE="3">文件函数信息的</font><font FACE="Times New Roman" SIZE="3">DEF</font><font SIZE="3">文件。使用时需要将</font><font FACE="Times New Roman" SIZE="3">DLL</font><font SIZE="3">文件拷贝至适当目录下。</p>
<p>两类动态连接库的创建:用户动态连接库和</font><font FACE="Times New Roman" SIZE="3">MFC</font><font SIZE="3">扩展库。</p>
</font>
</blockquote>
<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="615">
<tr>
<td><a href="chap9_3.htm">上一页</a></td>
<td><p align="right"></td>
</tr>
</table>
</center></div><font SIZE="5"><hr noshade color="#3973DE" size="1">
<p align="center"></font><font size="2" color="#000000">本教程由<a href="http://vcdynasty.yeah.net">Visual C++王朝(Where programmers come together)</a>协助制作<br>
未经许可,请勿以任何形式复制</font></td>
<b>
</tr>
</table>
</center></div>
<p ALIGN="CENTER"></b><font SIZE="5"> </font><font FACE="Times New Roman" SIZE="5"></p>
</font><font FACE="Times New Roman" SIZE="3">
<p></font><b><font SIZE="3"> </font><font FACE="Times New Roman" SIZE="3"></p>
</font></b>
<p><font SIZE="3"> </font><font FACE="Times New Roman" SIZE="3"></p>
<p></font> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -