<br />
<b>Warning</b>:  Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\class\discuz\discuz_database.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\class\discuz\discuz_database.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>76</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>76</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>77</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>85</b><br />
<br />
<b>Warning</b>:  Use of undefined constant setting - assumed 'setting' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant bbname - assumed 'bbname' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>86</b><br />
<br />
<b>Warning</b>:  Use of undefined constant siteurl - assumed 'siteurl' (this will throw an Error in a future version of PHP) in <b>D:\wwwroot\net188.com\source\module\forum\forum_rss.php</b> on line <b>87</b><br />
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>依星源码资源网,依星资源网 - C++教程</title>
    <link>http://net188.com/forum-46-1.html</link>
    <description>Latest 20 threads of C++教程</description>
    <copyright>Copyright(C) 依星源码资源网,依星资源网</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Sun, 26 Apr 2026 17:19:37 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://net188.com/static/image/common/logo_88_31.gif</url>
      <title>依星源码资源网,依星资源网</title>
      <link>http://net188.com/</link>
    </image>
    <item>
      <title>VC++ 2019 中生成 map文件</title>
      <link>http://net188.com/thread-26161-1-1.html</link>
      <description><![CDATA[VC++ 2019 中生成 map文件
在 VC++ 2019 中生成 map 文件，可以通过以下步骤设置项目属性来实现。以下是具体操作方法：
[*]打开项目属性页（右键项目 -&gt; 属性）。
[*]在左侧选择“链接器” -&gt; “调试”。
[*]将“生成映射文件”设置为“是(/map)”。
[*]可选地，在“链 ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 29 Jan 2026 03:48:03 +0000</pubDate>
    </item>
    <item>
      <title>VC++ 异常捕获与错误定位方法</title>
      <link>http://net188.com/thread-25618-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>C++教程</category>
      <author>admin</author>
      <pubDate>Thu, 25 Dec 2025 03:19:43 +0000</pubDate>
    </item>
    <item>
      <title>谈一谈线程中直接更新 UI 控件是不安全的问题分析。</title>
      <link>http://net188.com/thread-25606-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 24 Dec 2025 06:08:20 +0000</pubDate>
    </item>
    <item>
      <title>CListCtrl虚拟列表批量操作处理</title>
      <link>http://net188.com/thread-25583-1-1.html</link>
      <description><![CDATA[CListCtrl虚拟列表批量操作处理
## 虚拟列表批量操作处理

使用 `OnGetdispinfoListFiles` 的虚拟列表，批量操作主要是操作**外部数据源**，然后通知列表控件刷新。

---

### 批量操作示例

```cpp
// ==================== 批量添加数据 ====================
void CD ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Tue, 23 Dec 2025 06:58:00 +0000</pubDate>
    </item>
    <item>
      <title>CListCtrl 虚拟列表（Virtual List）数据量分析</title>
      <link>http://net188.com/thread-25582-1-1.html</link>
      <description><![CDATA[## CListCtrl 虚拟列表（Virtual List）数据量分析

### OnGetdispinfo 机制说明

`OnGetdispinfoListFiles` 是 **虚拟列表控件（Virtual List Control）** 的回调函数，用于按需获取显示数据。

---

### 理论最大数据量

| 限制因素 | 最大值 |
|----------|--------| ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Tue, 23 Dec 2025 06:57:28 +0000</pubDate>
    </item>
    <item>
      <title>VC++MFC 实现 PUT 请求提交</title>
      <link>http://net188.com/thread-25580-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Tue, 23 Dec 2025 06:08:08 +0000</pubDate>
    </item>
    <item>
      <title>C++ 内存屏障与编译器屏障的示例代码</title>
      <link>http://net188.com/thread-25579-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Tue, 23 Dec 2025 05:49:07 +0000</pubDate>
    </item>
    <item>
      <title>VC++获取 CPU 核心数的方法</title>
      <link>http://net188.com/thread-25446-1-1.html</link>
      <description><![CDATA[VC++获取 CPU 核心数的方法
推荐使用方法1或方法2，简单可靠：
[hr]
我来为你提供获取CPU核心数和判断64位系统的最优方法：

```cpp
// 获取系统信息结构体
struct SystemHardwareInfo {
    int nCpuCoreCount;          // CPU核心数（逻辑处理器数量）
    BOOL bIs6 ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 18 Dec 2025 07:25:34 +0000</pubDate>
    </item>
    <item>
      <title>VC++ (MFC) 中，将域名转换为 IP 地址</title>
      <link>http://net188.com/thread-25231-1-1.html</link>
      <description><![CDATA[VC++ (MFC) 中，将域名转换为 IP 地址
在 VC++ (MFC) 中，将域名转换为 IP 地址最标准、现代的方法是使用 Winsock 2 API 中的 `getaddrinfo` 函数。它比旧的 `gethostbyname` 更安全且支持 IPv6。

这是一个封装好的静态辅助函数，你可以直接添加到你的 `CRDPManagerDl ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Sun, 07 Dec 2025 08:34:56 +0000</pubDate>
    </item>
    <item>
      <title>Visual C++ (MSVC) 环境下，实现 16 字节（128 位）数值</title>
      <link>http://net188.com/thread-25229-1-1.html</link>
      <description><![CDATA[Visual C++ (MSVC) 环境下，实现 16 字节（128 位）数值
在 Visual C++ (MSVC) 环境下，标准库没有直接提供 128 位整数类型（不像 GCC 有 `__int128`）。

要实现 16 字节（128 位）数值，通常有两种方法：使用 **Boost 库** 或 **自定义结构体**。考虑到您正在开发 MFC ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 06 Dec 2025 07:26:40 +0000</pubDate>
    </item>
    <item>
      <title>error C2447: “{”: 缺少函数标题(是否是老式的形式表?)</title>
      <link>http://net188.com/thread-25225-1-1.html</link>
      <description><![CDATA[error C2447: “{”: 缺少函数标题(是否是老式的形式表?) 


这个BUG是以为在win7上使用了 LF 的格式编码导致的.   使用Notepad++ 修改成 BOM-UTF8 和  windows 的 CR LF 格式一切正常]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 03 Dec 2025 09:27:56 +0000</pubDate>
    </item>
    <item>
      <title>VC++让整个对话框“完全不可操作”而不去枚举每个控件，最稳健的做法是放一个覆盖层（overlay）在对话框的客户区上，拦截所有鼠标/键盘事件。</title>
      <link>http://net188.com/thread-25224-1-1.html</link>
      <description><![CDATA[VC++让整个对话框“完全不可操作”而不去枚举每个控件，最稳健的做法是放一个覆盖层（overlay）在对话框的客户区上，拦截所有鼠标/键盘事件。
要让整个对话框“完全不可操作”而不去枚举每个控件，最稳健的做法是放一个覆盖层（overlay）在对话框的客户区上，拦截所有鼠 ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 03 Dec 2025 01:27:39 +0000</pubDate>
    </item>
    <item>
      <title>VC++以FORM形式提交urlencode</title>
      <link>http://net188.com/thread-25092-1-1.html</link>
      <description><![CDATA[VC++以FORM形式提交urlencode
在 VC++ 里用表单方式（application/x-www-form-urlencoded）提交 HTTP 请求。下面给你一个典型实现思路和示例代码（用 WinHTTP，更常见、也更现代一些；如果你需要 WinINet 或 MFC CInternet 版本也可以再写）。思路概括
[*]构造表单字符 ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 20 Nov 2025 06:02:40 +0000</pubDate>
    </item>
    <item>
      <title>VC++实现的URL编码urlencode的两个版本（ansi和UTF-8）</title>
      <link>http://net188.com/thread-25091-1-1.html</link>
      <description><![CDATA[VC++实现的URL编码urlencode的两个版本（ansi和UTF-8）
要点说明：
[*]使用 WideCharToMultiByte(CP_UTF8, ...) 显式把 CString（内部 UTF‑16）转为 UTF‑8 字节流。
[*]URL 编码遍历的是 UTF‑8 字节，每个中文会变成 3 个字节，然后分别 %E4%B8%AD 这种形式。
[*]Spr ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Thu, 20 Nov 2025 05:58:42 +0000</pubDate>
    </item>
    <item>
      <title>IOCP连接中如何防止恶意连接：相同IP间隔5秒内请求达到100次</title>
      <link>http://net188.com/thread-25022-1-1.html</link>
      <description><![CDATA[IOCP连接中如何防止恶意连接：相同IP间隔5秒内请求达到100次
下面是示例代码片段，只展示核心思路。（例如每次接收完一个请求或统计一次「请求事件」时调用）。1. 统计与屏蔽逻辑（成员变量示例）

2. 每次请求时调用的函数：超过阈值则记入列表并拒绝

3. 使用示例（伪 ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 15 Nov 2025 03:36:55 +0000</pubDate>
    </item>
    <item>
      <title>VC++手机号码验证两种常用写法：正则版和“无正则”的快速版，均适配中国大陆手机号</title>
      <link>http://net188.com/thread-25021-1-1.html</link>
      <description><![CDATA[VC++手机号码验证两种常用写法：正则版和“无正则”的快速版，均适配中国大陆手机号
正则版（C++11）规则：可带可不带国家码 +86/86，可含空格/短横，核心号段 1[3-9] 开头共 11 位。无正则快速版（更轻量，性能好）
[*]去掉前后空白
[*]去掉空格和短横
[*]去掉前缀 +86 ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 15 Nov 2025 02:17:11 +0000</pubDate>
    </item>
    <item>
      <title>VC++中取得字符串长度</title>
      <link>http://net188.com/thread-24999-1-1.html</link>
      <description><![CDATA[VC++中取得字符串长度 
VC++ 里“取字符串长度”的各种写法，这里按常见类型给出最稳妥的方式，并区分“字符数”和“字节数”（做 CRC 时尤其重要）。
[*]

[*]C++ 标准字符串
std::string（常用于 UTF‑8 或 ANSI，元素是 char）

字符数（也是字节数）:

std::string  ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Mon, 10 Nov 2025 10:00:33 +0000</pubDate>
    </item>
    <item>
      <title>MSVC（VC++）下各类常用类型的“占用字节数”按平台整理成精确对照表，并补充易混淆点与自检方法</title>
      <link>http://net188.com/thread-24998-1-1.html</link>
      <description><![CDATA[MSVC（VC++）下各类常用类型的“占用字节数”按平台整理成精确对照表，并补充易混淆点与自检方法。Windows 的 64 位 ABI 采用 LLP64（long 仍是 4 字节，指针/size_t 等是 8 字节），x64 与 ARM64 在大小上相同。核心结论（LLP64 模型）
[*]32 位（Win32/x86）：指针与  ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Mon, 10 Nov 2025 08:43:46 +0000</pubDate>
    </item>
    <item>
      <title>VC++开启线程等待socket发送数据，最大多少线程数量合适</title>
      <link>http://net188.com/thread-24941-1-1.html</link>
      <description><![CDATA[VC++开启线程等待socket发送数据，最大多少线程数量合适
短结论
[*]阻塞式 CSocket/每连接一线程：建议把“同时等待发送的线程”上限控制在 64～128（桌面机）/128～256（服务器），再高就要换 IOCP/重构。
[*]IOCP/重叠 I/O：工作线程数≈CPU 核数到 2×核数。
如何估 ...]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Wed, 05 Nov 2025 01:03:59 +0000</pubDate>
    </item>
    <item>
      <title>MFC 项目里的“上传/下载二进制（PUT/GET）并计时/打印返回值”的示例，使用 WinHTTP,并附java相同功能的上传下载源码</title>
      <link>http://net188.com/thread-24848-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>C++教程</category>
      <author>源码资源网</author>
      <pubDate>Sat, 01 Nov 2025 07:55:25 +0000</pubDate>
    </item>
  </channel>
</rss>