⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mfcins.htm

📁 串口调试工具 用于串口调 试的很方便
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>MFC classes Installation</title>
</head>

<body bgcolor="#FFFFFF">

<p align="center"><strong>Installing C++ source files </strong></p>

<p>When extracting the source files keep the directory structure for correct compilation.</p>

<p>Load the workspace Modbucfg.dsw, this workspace contain 3 projects , Modbucfg (Modbus
configuration utility) , Modbulib (A library containing the modbus classes and some other
classes) and ModbusServer (ActiveX server ). </p>

<p>Before trying to compile you need to change some options of Visual C++ :</p>

<p>Suppose you extract the file to a directory called <a href="c:\Modbus">c:\Modbus</a>
then</p>

<p>a) Add the directory <a href="C:\Modbus\UtilClasses\include">&quot;C:\Modbus\UtilClasses\include&quot;</a>
to Tool | directory | Include Files </p>

<p>b) Add the directory <a href="C:\Modbus\ModbuLib">&quot;C:\Modbus\ModbuLib&quot;</a> to
Tool | directory | Library Files </p>

<p>Now you can build the projects. Try first the debug version following the steps below:

<ol>
  <li>First set active project as Modbulib - Win32 Debug and build this project. </li>
  <li>Build the project ModbusServer - Win32 Debug.</li>
  <li>Now you can build the project ModbuCfg - Win32 Debug and test the project.</li>
</ol>

<p>When you desire to add the Modbus classes to your MFC project is necessary add a line </p>

<p>#include &quot;mbu.h&quot;</p>

<p>to stdafx.h file. This header file include some MFC and ATL header files used by modbus
classes.</p>

<p>and add the line </p>

<p>#include &lt;atlimpl.cpp&gt;</p>

<p>to stdafx.cpp</p>

<p>, include the header files of the class you are interested and use MFC as shared DLL.
Doing these includes you adding MFC and atl classes.</p>

<p><a href="cmodbu.htm">CModbus class</a>, <a href="index.htm">Home</a></p>

<p>&nbsp;</p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -