<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>MCU大虾网</title><link>https://mcuem.xyz/</link><description>技术学习积累成长</description><item><title>CentOS8 Stream安装chrome</title><link>https://mcuem.xyz/?id=115</link><description>&lt;p&gt;先换源：&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h4 style=&quot;font-size: 16px; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 16px 0px; color: rgb(15, 17, 21); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1. 备份原有配置（重要安全步骤）&lt;/h4&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;#&amp;nbsp;创建备份目录并移动所有原有的&amp;nbsp;.repo&amp;nbsp;文件
sudo&amp;nbsp;mkdir&amp;nbsp;-p&amp;nbsp;/etc/yum.repos.d/backupsudo&amp;nbsp;mv&amp;nbsp;/etc/yum.repos.d/*.repo&amp;nbsp;/etc/yum.repos.d/backup/&lt;/pre&gt;&lt;h4 style=&quot;font-size: 16px; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 16px 0px; color: rgb(15, 17, 21); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2. 创建并编辑新的源配置文件&lt;/h4&gt;&lt;p&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;使用文本编辑器（如&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: var(--ds-font-family-code); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; color: rgb(15, 17, 21); text-wrap: wrap; font-size: 0.875em !important;&quot;&gt;vim&lt;/code&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&amp;nbsp;或&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: var(--ds-font-family-code); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; color: rgb(15, 17, 21); text-wrap: wrap; font-size: 0.875em !important;&quot;&gt;nano&lt;/code&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;）创建&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: var(--ds-font-family-code); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; color: rgb(15, 17, 21); text-wrap: wrap; font-size: 0.875em !important;&quot;&gt;/etc/yum.repos.d/CentOS-Stream.repo&lt;/code&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&amp;nbsp;文件：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;sudo&amp;nbsp;vim&amp;nbsp;/etc/yum.repos.d/CentOS-Stream.repo&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;然后，将以下内容&lt;/span&gt;&lt;span style=&quot;font-weight: 600; color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;完整复制&lt;/span&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;并粘贴到文件中：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;[BaseOS]
name=CentOS-Stream-8&amp;nbsp;-&amp;nbsp;Base
baseurl=https://mirrors.aliyun.com/centos/8-stream/BaseOS/x86_64/os/
pgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[AppStream]
name=CentOS-Stream-8&amp;nbsp;-&amp;nbsp;AppStream
baseurl=https://mirrors.aliyun.com/centos/8-stream/AppStream/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[extras]
name=CentOS-Stream-8&amp;nbsp;-&amp;nbsp;Extras
baseurl=https://mirrors.aliyun.com/centos/8-stream/extras/x86_64/os/
gpgcheck=1
enabled=1
gpgkey=https://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&lt;/span&gt;&lt;em style=&quot;color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;注意：&lt;code style=&quot;box-sizing: border-box; font-style: ; font-variant-ligatures: ; font-variant-caps: ; font-variant-numeric: ; font-variant-east-asian: ; font-variant-alternates: ; font-variant-position: ; font-weight: ; font-stretch: ; line-height: ; font-optical-sizing: ; font-kerning: ; font-feature-settings: ; font-variation-settings: ; font-family: var(--ds-font-family-code); background-color: var(--dsw-alias-markdown-inline-code); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;baseurl&lt;/code&gt;&amp;nbsp;中的&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-style: ; font-variant-ligatures: ; font-variant-caps: ; font-variant-numeric: ; font-variant-east-asian: ; font-variant-alternates: ; font-variant-position: ; font-weight: ; font-stretch: ; line-height: ; font-optical-sizing: ; font-kerning: ; font-feature-settings: ; font-variation-settings: ; font-family: var(--ds-font-family-code); background-color: var(--dsw-alias-markdown-inline-code); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;/8-stream/&lt;/code&gt;&amp;nbsp;路径是专门为 CentOS Stream 8 设计的&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;h4 style=&quot;font-size: 16px; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; margin: 16px 0px; color: rgb(15, 17, 21); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;3. 清理并重建缓存&lt;/h4&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;配置完成后，执行以下命令使新源生效&lt;/p&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;sudo&amp;nbsp;dnf&amp;nbsp;clean&amp;nbsp;all
sudo&amp;nbsp;dnf&amp;nbsp;makecache&lt;/pre&gt;&lt;p&gt;&lt;em style=&quot;color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/em&gt;&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-weight: 600;&quot;&gt;1. 添加 Google Chrome 软件源&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;创建一个新的仓库文件，让系统知道去哪里下载 Chrom&lt;/p&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;sudo&amp;nbsp;tee&amp;nbsp;/etc/yum.repos.d/google-chrome.repo&amp;nbsp;&amp;lt;&amp;lt;EOF
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch&amp;nbsp;
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
EOF&lt;/pre&gt;&lt;p&gt;&lt;em style=&quot;color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/em&gt;&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-weight: 600;&quot;&gt;2. 导入 Google 的 GPG 签名密钥&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这一步是必要的安全验证，确保下载的软件包来自 Google 且未被篡改&lt;/p&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;sudo&amp;nbsp;rpm&amp;nbsp;--import&amp;nbsp;https://dl.google.com/linux/linux_signing_key.pub&lt;/pre&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-weight: 600;&quot;&gt;3. 更新软件包缓存&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;让系统识别刚刚添加的 Chrome 仓库。&lt;/p&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;sudo&amp;nbsp;dnf&amp;nbsp;update&lt;/pre&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-weight: 600;&quot;&gt;4. 安装 Chrome&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 16px; margin-bottom: 16px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;最后，执行安装命令&lt;/p&gt;&lt;pre style=&quot;font-family: var(--ds-font-family-code); overflow: auto; text-wrap: wrap; word-break: break-all; padding: 16px; color: rgb(15, 17, 21); margin-top: 0px !important; margin-bottom: 0px !important;&quot;&gt;sudo&amp;nbsp;dnf&amp;nbsp;install&amp;nbsp;google-chrome-stable&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;安装过程中，系统可能会询问是否导入密钥或确认安装，输入&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: var(--ds-font-family-code); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; color: rgb(15, 17, 21); text-wrap: wrap; font-size: 0.875em !important;&quot;&gt;y&lt;/code&gt;&lt;span style=&quot;color: #0F1115; font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&amp;nbsp;并按回车即可。&lt;/span&gt;&lt;/p&gt;</description><pubDate>Tue, 07 Apr 2026 10:01:35 +0800</pubDate></item><item><title>ubuntu24.04修改密码长度低于8位规则</title><link>https://mcuem.xyz/?id=114</link><description>&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;Ubuntu系统中，修改密码长度规则通常是依赖于PAM（Pluggable Authentication Modules）模块的配置。默认情况下，Ubuntu使用了&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;pam_pwquality&lt;/code&gt;模块来管理密码策略，其中包括密码长度要求。&lt;/p&gt;&lt;h3 style=&quot;margin: 6px 0px; padding: 0px; list-style: none; line-height: 30px; font-size: 18px; -webkit-font-smoothing: antialiased; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;修改密码长度规则&lt;/h3&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;要修改密码长度规则，你需要编辑&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;/etc/security/pwquality.conf&lt;/code&gt;文件。你可以使用文本编辑器来修改这个文件，例如使用&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;nano&lt;/code&gt;或&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;vim&lt;/code&gt;。&lt;/p&gt;&lt;ol style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;打开终端。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;使用以下命令编辑&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;pwquality.conf&lt;/code&gt;文件：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot;&gt;sudo&amp;nbsp;nano&amp;nbsp;/etc/security/pwquality.conf&lt;/pre&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;或者使用&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;vim&lt;/code&gt;:&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot;&gt;sudo&amp;nbsp;vim&amp;nbsp;/etc/security/pwquality.conf&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;在文件中找到或添加以下行来设置密码最小长度：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px;&quot;&gt;minlen&amp;nbsp;=&amp;nbsp;6&lt;/pre&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;前面的#去掉&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;这里&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;background-color: #EDEEF0;&quot;&gt;6&lt;/span&gt;&lt;/font&gt;是你希望设置的密码最小长度。你可以根据需要调整这个数字。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; line-height: 28px; -webkit-text-stroke-color: initial;&quot;&gt;保存并关闭文件。如果你使用的是&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;nano&lt;/code&gt;，可以通过按&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;Ctrl + O&lt;/code&gt;保存更改，然后按&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;Ctrl + X&lt;/code&gt;退出；如果你使用的是&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;vim&lt;/code&gt;，则可以通过输入&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;:wq&lt;/code&gt;然后按&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;Enter&lt;/code&gt;来保存并退出。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 style=&quot;margin: 6px 0px; padding: 0px; list-style: none; line-height: 30px; font-size: 18px; -webkit-font-smoothing: antialiased; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;重启PAM服务&lt;/h3&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;修改完配置文件后，为了使更改生效，你可能需要重启PAM服务或整个系统。通常，重启PAM服务就足够了。可以使用以下命令来重启PAM服务：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px; color: rgb(51, 51, 51); font-size: 16px;&quot;&gt;sudo&amp;nbsp;systemctl&amp;nbsp;restart&amp;nbsp;pam-auth-update.service&lt;/pre&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;或者简单地重启系统：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px; color: rgb(51, 51, 51); font-size: 16px;&quot;&gt;sudo&amp;nbsp;reboot&lt;/pre&gt;&lt;h3 style=&quot;margin: 6px 0px; padding: 0px; list-style: none; line-height: 30px; font-size: 18px; -webkit-font-smoothing: antialiased; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;验证更改&lt;/h3&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;重启后，你可以通过创建一个新用户或更改现有用户的密码来验证密码长度规则是否生效：&lt;/p&gt;&lt;pre style=&quot;background-color: rgba(245, 246, 249, 0.5); line-height: 24px; margin-top: 12px; margin-bottom: 12px; -webkit-font-smoothing: antialiased; border-radius: 9px; color: rgb(51, 51, 51); font-size: 16px;&quot;&gt;sudo&amp;nbsp;adduser&amp;nbsp;newuser#&amp;nbsp;或者更改现有用户的密码：sudo&amp;nbsp;passwd&amp;nbsp;username&lt;/pre&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在设置密码时，系统会强制应用新的密码长度策略。&lt;/p&gt;&lt;h3 style=&quot;margin: 6px 0px; padding: 0px; list-style: none; line-height: 30px; font-size: 18px; -webkit-font-smoothing: antialiased; font-weight: 500; -webkit-text-stroke-color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; color: rgb(51, 51, 51); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;注意事项&lt;/h3&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;确保设置的密码长度符合组织的安全政策。过短的密码容易被猜测或破解。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;如果你在修改配置文件时遇到权限问题，确保你使用了&lt;code style=&quot;background: none 0% 0% / auto repeat scroll padding-box border-box rgb(237, 238, 240); border-radius: 6px; margin: 0px 4px; padding: 1px 4px; -webkit-font-smoothing: antialiased;&quot;&gt;sudo&lt;/code&gt;来编辑文件。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在生产环境中，更改密码策略前最好先通知所有用户，并确保他们了解新的安全要求。这有助于避免混乱和可能的用户不满。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;marklang-paragraph&quot; style=&quot;margin-top: 6px; margin-bottom: 6px; padding: 0px; list-style: none; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 28px; color: rgb(51, 51, 51); -webkit-text-stroke-color: initial; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;通过上述步骤，你应该能够成功修改Ubuntu系统中的密码长度规则。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 19 Mar 2026 09:39:24 +0800</pubDate></item><item><title>科技图片</title><link>https://mcuem.xyz/?id=113</link><description>&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512291766996848319216.png&quot; style=&quot;&quot; title=&quot;1301.png&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512291766996849909861.jpg&quot; style=&quot;&quot; title=&quot;1302.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 29 Dec 2025 16:26:43 +0800</pubDate></item><item><title>Emlog php网站后台编辑器等图标无法正常展示，都是小方块怎么解决？</title><link>https://mcuem.xyz/?id=112</link><description>&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766901270358734.png&quot; title=&quot;1205.png&quot; alt=&quot;1205.png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;如果是 Windows 操作系统IIS服务器部署emlog，可能会遇到浏览器找不到字体文件（woff/woff2）&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;产生的错误。这样会导致浏览器无法加载字体图标，&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;这是因为服务器IIS不认woff/woff2 文件类型的&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;原因。以下是解决方案（也可以自己搜索：&amp;quot;IIS 字体不显示&amp;quot; ，网上也有很多解决该问题的文章）：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;1.打开IIS，在主界面中点击MIME类型：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;2.手动添加MIME类型：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;扩展名&amp;nbsp; MIME类型&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;.woff application/x-font-woff&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;.woff2 application/x-font-woff&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;3.添加完成后，刷新页面就行了。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;如果上面方法未能解决，检查是否开启了静态 CDN，emlog 是动态系统并不支持静态CDN，开启&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;可能会导致字体加载出现跨域问题，无法加载，&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;出现图标无法展示的问题，请关闭CDN。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;IIS管理器在 windows控制面板&amp;nbsp; 管理工具&amp;nbsp; internet信息服务器管理器中 设置中 选择网站，对应的&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; text-wrap: nowrap;&quot;&gt;网站才能看到MINE设置&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Dec 2025 13:53:23 +0800</pubDate></item><item><title>Mscomm控件安装问题 License information for TMSComm not found(bcb6) win10</title><link>https://mcuem.xyz/?id=111</link><description>&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;操作步骤：&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&amp;nbsp;1.打开delphi,菜单选择compoents-&amp;gt;import Activex control，然后选择那个mscomm32.ocx安装即可。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-variant-numeric: normal; font-variant-east-asian: normal; overflow-wrap: break-word;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline-style: none; outline-width: 0px; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;2.注册MScomm控件&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline-style: none; outline-width: 0px; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;开始-》运行-》 regsvr32 MScomm32.ocx&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-variant-numeric: normal; font-variant-east-asian: normal; overflow-wrap: break-word;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;如果在delphi中使用Mscomm控件出现如下错误提示：&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-variant-numeric: normal; font-variant-east-asian: normal; overflow-wrap: break-word;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;“License information for TMSComm not found.You cannot&amp;nbsp;&amp;nbsp;use this&amp;nbsp;&amp;nbsp;control in design mode.”&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-variant-numeric: normal; font-variant-east-asian: normal; overflow-wrap: break-word;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;则运行如下操作步骤：&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-variant-numeric: normal; font-variant-east-asian: normal; overflow-wrap: break-word;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;{&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline-style: none; outline-width: 0px; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;在程序，运行中运行：regedit，进入注册表，在HEKEY_CLASS_ROOT下的LICENSES下新建项目，&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline-style: none; outline-width: 0px; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;项目名是：4250E830-6AC2-11cf-8ADB-00AA00C00905&lt;br style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline-style: none; outline-width: 0px; overflow-wrap: break-word;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;选中此新建项目的对应的右边的默认右击鼠标，选择修改在数值数据中输入：&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-variant-numeric: normal; font-variant-east-asian: normal; overflow-wrap: break-word;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; background-color: rgb(255, 255, 255); border: 0px none currentcolor; box-sizing: border-box; color: rgb(50, 62, 50); font-family: simsun; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; list-style: outside none none; outline-style: none; outline-width: 0px; overflow-wrap: break-word; overflow-x: auto;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Dec 2025 13:52:52 +0800</pubDate></item><item><title>关于AD18中Board information的位置更改</title><link>https://mcuem.xyz/?id=110</link><description>&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;AD18出来也有将近小半个月了，论坛里也看到有人在问以前report里的board information到哪里去了？&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;如果你没用过pads啥的，可能看界面会懵比了&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;仔细看右边！！！！&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766901120250735.png&quot; title=&quot;1201.png&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;没错！就是它，点开以后下拉，看到没？！大大的report~&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766901120688487.png&quot; title=&quot;1202.png&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766901120190537.png&quot; title=&quot;1203.png&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;点击它就是我们以前熟悉的东东了~&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;SF Pro Display&amp;quot;, Roboto, Noto, Arial, &amp;quot;PingFang SC&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;ＰＳ：不得不说ＡＤ确实进步的很快。而老牌的ｃａｄｅｎｃｅ这些功能很强大，但交互应用始终是个头疼的问题，画一般的板子我已经抛弃它了。&lt;/span&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Dec 2025 13:50:26 +0800</pubDate></item><item><title>win7电脑时间每次开机后总是自己快8小时</title><link>https://mcuem.xyz/?id=109</link><description>&lt;div class=&quot;post_content&quot; style=&quot;padding: 0px; margin: 0px; min-height: 30px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap;&quot;&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px;&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Lantinghei SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, arial, 宋体, sans-serif, tahoma; font-size: 16px; background-color: #FFFFFF;&quot;&gt;正确答案是打开注册表编辑器，regedit。找到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation。把其中名为RealTimeIsUniversal的的值，设置为0&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #333333; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Lantinghei SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, arial, 宋体, sans-serif, tahoma; font-size: 16px; background-color: #FFFFFF;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Dec 2025 13:49:56 +0800</pubDate></item><item><title>防止程序启动两次的方法CreateMutex()</title><link>https://mcuem.xyz/?id=108</link><description>&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4B4B4B; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;在工程文件中, WinMain函数里加上以下代码(此代码在BCB6.0下运行):&lt;/span&gt;&lt;br style=&quot;padding: 0px; margin: 0px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;/&gt;&lt;/p&gt;&lt;div style=&quot;padding: 4px 5px 4px 4px; margin: 0px; text-wrap: wrap; border: 1px solid rgb(204, 204, 204); width: 966.26px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;HANDLE&amp;nbsp;hMutex&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;CreateMutex(NULL,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;Process&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;);&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;(GetLastError()&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;ERROR_ALREADY_EXISTS)&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;Codehighlighter1_115_313_Open_Text&quot; style=&quot;padding: 0px; margin: 0px;&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;{&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CloseHandle(hMutex);&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MessageBox(Application&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;Handle,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;程序已经在运行中，不能重复启动！&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;提示&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;,&amp;nbsp;MB_OK&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;MB_ICONWARNING);&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Application&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;Terminate();&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Application&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;CreateForm(__classid(TForm1),&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;Form1);&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;/&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4B4B4B; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;主要使用到CreateMutex()函数和GetLastError()以及一个常量ERROR_ALREADY_EXISTS.&lt;/span&gt;&lt;br style=&quot;padding: 0px; margin: 0px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;/&gt;&lt;br style=&quot;padding: 0px; margin: 0px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;/&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4B4B4B; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;当然, 你的程序有窗体的话, 还可以使用FindWindow().&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;padding: 0px; margin: 0px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;/&gt;&lt;br style=&quot;padding: 0px; margin: 0px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;/&gt;&lt;/p&gt;&lt;div style=&quot;padding: 4px 5px 4px 4px; margin: 0px; text-wrap: wrap; border: 1px solid rgb(204, 204, 204); width: 966.26px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;handle&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;FindWindow(NULL,&amp;nbsp;WindowName.c_str());&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;(handle&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;NULL)&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;;&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;进程的互斥运行&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;　　正常情况下，一个进程的运行一般是不会影响到其他正在运行的进程的。但是对于某些有特殊要求的如以独占方式使用串行口等硬件设备的程序就要求在其进程运行期间不允许其他试图使用此端口设备的程序运行的，而且此类程序通常也不允许运行同一个程序的多个实例。这就引出了进程互斥的问题。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;　　实现进程互斥的核心思想比较简单：进程在启动时首先检查当前系统是否已经存在有此进程的实例，如果没有，进程将成功创建并设置标识实例已经存在的标记。此后再创建进程时将会通过该标记而知晓其实例已经存在，从而保证进程在系统中只能存在一个实例。具体可以采取内存映射文件、有名事件量、有名互斥量以及全局共享变量等多种方法来实现。下面就分别对其中具有代表性的有名互斥量和全局共享变量这两种方法进行介绍：&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/p&gt;&lt;div style=&quot;padding: 4px 5px 4px 4px; margin: 0px; text-wrap: wrap; border: 1px solid rgb(204, 204, 204); width: 966.26px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&amp;nbsp;创建互斥量&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;HANDLE&amp;nbsp;m_hMutex&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;CreateMutex(NULL,&amp;nbsp;FALSE,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;Sample07&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;);&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&amp;nbsp;检查错误代码&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;(GetLastError()&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;ERROR_ALREADY_EXISTS)&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;Codehighlighter1_119_212_Open_Text&quot; style=&quot;padding: 0px; margin: 0px;&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;{&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;　&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&amp;nbsp;如果已有互斥量存在则释放句柄并复位互斥量&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;　CloseHandle(m_hMutex);&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;　m_hMutex&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;NULL;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;　&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&amp;nbsp;程序退出&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;　&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #0000FF;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;&amp;nbsp;FALSE;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;上面这段代码演示了有名互斥量在进程互斥中的用法。代码的核心是CreateMutex（）对有名互斥量的创建。CreateMutex（）函数可用来创建一个有名或无名的互斥量对象，其函数原型为：&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/p&gt;&lt;div style=&quot;padding: 4px 5px 4px 4px; margin: 0px; text-wrap: wrap; border: 1px solid rgb(204, 204, 204); width: 966.26px; color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;HANDLE&amp;nbsp;CreateMutex(&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;　LPSECURITY_ATTRIBUTES&amp;nbsp;lpMutexAttributes,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&amp;nbsp;指向安全属性的指针&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;　BOOL&amp;nbsp;bInitialOwner,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&amp;nbsp;初始化互斥对象的所有者&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;　LPCTSTR&amp;nbsp;lpName&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;//&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&amp;nbsp;指向互斥对象名的指针&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #008000;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #000000;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;如果函数成功执行，将返回一个互斥量对象的句柄。如果在CreateMutex（）执行前已经存在有相同名字的互斥量，函数将返回这个已经存在互斥量的句柄，并且可以通过GetLastError（）得到错误代码ERROR_ALREADY_EXIST。可见，通过对错误代码ERROR_ALREADY_EXIST的检测可以实现CreateMutex（）对进程的互斥。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 建立互斥体，用来同步。如果一个线程获取了互斥体，则要获取该互斥体的第二个线程将被挂起，直到第一个线程释放该互斥体。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;参数&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;lpMutexAttributes&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;指向一个SECURITY_ATTRIBUTES结构的指针，这个结构决定互斥体句柄是否被子进程继承。&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;bInitialOwner&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;布尔类型，决定互斥体的创建者是否为拥有者&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;lpName&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;指向互斥体名字字符串的指针。互斥体可以有名字。&amp;nbsp;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;互斥体的好处是可以在进程间共享&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;心得体会：&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateMutex() 用于有独占要求的程序 (在其进程运行期间不允许其他使用此端口设备的程序运行，或不允许同名程序运行)。如有同名程序运行，则通过 GetLastError（）得到错误代码 ERROR_ALREADY_EXIST。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; text-wrap: wrap; background-color: rgb(255, 255, 255); color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;刚才又执行了下得出的结果（程序名samp）&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 一般情况下：一进入调试阶段，进程管理器中就出现了samp进程，执行到CreateMutex时返回进程句柄，执行到if(GetLastError() == ERROR_ALREADY_EXISTS ) 进行判断时，跳过不执行if中的内容，所以表示没有互斥。&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 调试之前先运行debug中的samp.exe再调试：一进入调试阶段，进程管理器中就出现了两个samp进程，执行到CreateMutex时返回进程句柄，执行到if(GetLastError() == ERROR_ALREADY_EXISTS ) 进行判断时，执行if中的内容，表示有互斥。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Dec 2025 13:49:06 +0800</pubDate></item><item><title>为你的C++ Builder 6 安装FastReport 4</title><link>https://mcuem.xyz/?id=107</link><description>&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;声明：以下教程是从网上copy下来的，权当给自己留一份记录，经测试，可用。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&amp;nbsp;--------------------- 本文来自 feichangfriend 的CSDN 博客 ，全文地址请点击：&lt;a href=&quot;https://blog.csdn.net/feichangfriend/article/details/9140981?utm_source=copy&quot; _src=&quot;https://blog.csdn.net/feichangfriend/article/details/9140981?utm_source=copy&quot; style=&quot;padding: 0px; margin: 0px; text-decoration-line: none; color: rgb(118, 146, 60);&quot;&gt;https://blog.csdn.net/feichangfriend/article/details/9140981?utm_source=copy&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;以前曾经安装过FastReport数据报表控件，觉得功能不错。现在发现网上已经有4以上的版本下载使用。于是从CCRUN上下载了FastReport V4.7.9进行安装，在下载后发现安装复杂了些，比FastReprot 2.41的版本比较没有自动安装，需要手动编译各部件。于是将安装心得记录给有需要的朋友参考。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;padding: 0px; margin: 0px; font-size: 12pt;&quot;&gt;一、 卸载旧版本&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255); font-size: 11pt;&quot;&gt;如果以前未安装过FastReport可以直接跳到下一步。如果安装过以前版本的FastReport在工具栏上会看到FastReport和FR Tools两个选项栏。首先我们要把先前的版本卸载。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900827675528.jpg&quot; title=&quot;1.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开BCB的菜单&amp;quot;Project&amp;quot;-&amp;gt;Option。然后在Packages的标签栏项目下，找到FastReport的所有部件，如下图的FastReport2.4 ADO Components 和 FastReport 2.4 Components。分别点击它们然后点地击“Remove”按钮逐个删除。卸载完成后返回，工具栏上面的FastReport和FR Tools两个选项栏也同时被清除。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900827647143.jpg&quot; title=&quot;2.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline: 0px; font-weight: 700; word-break: break-all; font-size: 12pt;&quot;&gt;二、设定安装目录&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 11pt; color: rgb(79, 79, 79); line-height: 26px; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;选择一个目录进行安装，现在以D:/cb6_control目录为例，将下载的FastReport V4.7.9解压到此目录。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 11pt; color: rgb(79, 79, 79); line-height: 26px; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900827660309.jpg&quot; title=&quot;3.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline: 0px; font-weight: 700; word-break: break-all; font-size: 12pt;&quot;&gt;三、生成安装链接文件&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;1. 执行recomplie文件，执行文件前请先将BCB6退出。否则程序文件出现提示并不能继续安装。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;2. 程序运行后出现提示，主要是目录读写权限、C++Builder是否运行、是否有其它程序运行FastReport的部件包，点击“Continue”。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 11pt; color: rgb(79, 79, 79); line-height: 26px; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900827112360.jpg&quot; title=&quot;4.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;3. 进入到程序界面，选择相应的参数项。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;第一项“1. Select the complier”选择程序，选择C++Builer 6。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;第二项“2. Select the FastReport version”选择安装FastReport的版本，选择Enterprise。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;第三项“3. Select the TeeChart version”，如果不知道的情况下请选择TeeChartStd。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;第四项“4.What you want to do”，把“Choose Language to”的选择改为“Chinese”中文版。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;完成后点击“Complier”，然后程序将FastReport安装所需要的文件生成到&amp;quot;LibBCB6&amp;quot;目录下。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900827272877.jpg&quot; title=&quot;5.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;3. 进入安装目录的/Res/Chinese，执行mk.bat文件生成中文菜单XML文件。并将文件复制到安装目录下的Source目录里面。注意一定要执行这个步聚，否则安装后的FastReport菜单的中文为乱码。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;padding: 0px; margin: 0px; font-size: 12pt;&quot;&gt;四、编译部件&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1. 将刚才生成的LibBCB6的所有文件复制到Source目录下。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2.启动BCB。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;3.将Source目录下的文件frx.inc复制到FastQB目录下。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;4.编译基本部件，用BCB打开及编译以下部件。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开FastQB目录下的fqb60.bpk，然后Complie.&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开FastScript目录下的fs6.bpk，然后Complie，编译完成后Install安装.&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开FastScript目录下的fsDB6.bpk，然后Complie，编译完成后Install安装..&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开FastScript目录下的FsADO6.bpk，然后Complie，编译完成后Install安装.&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开FastScript目录下的FsBDE6.bpk，然后Complie，编译完成后Install安装.&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;5.安装控件。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;将LibD10目录下的所有pas文件复制到Source目录。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;将Source目录下的所有pas文件复制到C++Builder安装目录的Lib/Release目录里面。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;将FastScript目录下的所有pas文件复制到C++Builder安装目录的Lib/Release目录里面。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1) 用BCB打开source目录下的frx6.bpk，然后Complie，编译完成后Install安装。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;2) 用BCB打开source目录下的frxDB6.bpk，然后Complie，编译完成后Install安装。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;3) 用BCB打开source/ExportPack目录下的frex6.bpk，然后Complie，编译完成后Install安装。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;4) 用BCB打开source/Ado目录下的frxADO6.bpk，然后Complie，编译完成后Install安装。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;5 用BCB打开source/BDE目录下的frxBDE6.bpk，然后Complie，编译完成后Install安装。(可选安装)&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;6) 用BCB打开source/DBX目录下的frxDBX6.bpk，然后Complie，编译完成后Install安装。(可选安装)&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #FF0000;&quot;&gt;7) 用BCB打开source目录下的frxTee6.bpk，然后Complie，编译完成后Install安装。(Chart,可选安装)&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;6.完成以上安装后，BCB的工具栏出现FastReport 4.0 和FR4 tools的标签栏。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900827737782.jpg&quot; title=&quot;6.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; box-sizing: border-box; outline: 0px; font-weight: 700; word-break: break-all;&quot;&gt;五、指定头文件和链接库的目录&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;1. 点击BCB菜单“Project”-&amp;gt;“Options”，选择“Directories/Conditionals”的标签栏。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900827246570.jpg&quot; title=&quot;7.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-size: 16px; text-align: justify;&quot;&gt;2. 点击“Include Path”的目录选择按钮“...”，弹出界面后点击“...”选择头文件的目录，即Source目录，本例的路径为“D:/cb6_control/gastReport.v4.7.9/Source”，然后点击“Add”按钮。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900828777980.jpg&quot; title=&quot;8.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;3. 按照同样的方法将“Source”目录添加到“Libary Path”链接库选项。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 16px; text-wrap: wrap; box-sizing: border-box; outline: 0px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; background-color: rgb(255, 255, 255);&quot;&gt;4.点击选择左下角的Default，然后点击“OK”。&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-size: 16px; text-align: justify;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900828722673.jpg&quot; title=&quot;9.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/span&gt;&lt;br style=&quot;padding: 0px; margin: 0px;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;padding: 0px; margin-top: 0px; margin-bottom: 10px; color: rgb(0, 51, 0); font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;padding: 0px; margin: 0px; color: #4F4F4F; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif, SimHei, SimSun; font-size: 16px; text-align: justify;&quot;&gt;5.重新启动BCB，FastReport4正式安装完毕。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900828302371.jpg&quot; style=&quot;&quot; title=&quot;10.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Dec 2025 13:44:18 +0800</pubDate></item><item><title>BCB6默认保存项目选项defalut打钩，以后每个新建工程都一样</title><link>https://mcuem.xyz/?id=106</link><description>&lt;p&gt;&lt;span style=&quot;color: #003300; font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;BCB6默认保存项目选项defalut打钩，以后每个新建工程都一样&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #003300; font-family: 微软雅黑, 宋体, &amp;quot;Trebuchet MS&amp;quot;, Tahoma, Arial, sans-serif; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://mcuem.xyz/zb_users/upload/2025/12/202512281766900642599620.jpg&quot; title=&quot;1105.jpg&quot; alt=&quot;1105.jpg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;</description><pubDate>Sun, 28 Dec 2025 13:43:11 +0800</pubDate></item></channel></rss>