- 博客(13)
- 资源 (6)
- 收藏
- 关注
原创 C++ std::vector<MyStruct> 去重复
#include <iostream>#include <string>#include <vector>#include <algorithm>struct MyStruct{ std::string a1; std::string a2; std::string a3; bool operator <(const M...
2019-01-16 01:00:44
724
原创 C++ Win32 Api 实现了atlconv.h 编码转换的功能
textconv_helper.hpp/** Author: LowBoyTeam (https://github.com/LowBoyTeam)* License: Code Project Open License* Disclaimer: The software is provided "as-is". No claim of suitability, guarantee, or an
2017-02-15 17:52:33
947
原创 C++ 使用模板(template) 扩展std::string
C++ 使用模板(template) 扩展std::stringstring_helper.hpp/** Author: LowBoyTeam (https://github.com/LowBoyTeam)* License: Code Project Open License* Disclaimer: The software is provided "as-is". No claim of
2017-02-15 16:40:37
898
原创 树莓派 raspberrypi-dnspod
dnspod.py 是基于 DNSPod 服务的动态 DNS 脚本,用于检测 IP 变化并更新至 DNSPod。支持 Linux 设备,包括树莓派(Raspberry Pi)。raspberrypi-dnspoddnspod.py 是基于 DNSPod 服务的动态 DNS 脚本,用于检测 IP 变化并更新至 DNSPod。支持 Linux 设备,包括树莓派(Raspberry Pi)。 如果域名
2016-12-22 15:16:44
480
原创 C++ 获取计算机语言和国家
#include "stdafx.h"#include <windows.h>#include <Urlmon.h>#pragma comment(lib, "Urlmon")int main(){ TCHAR szLanguage[MAX_PATH] = { 0 }; TCHAR szCountry[MAX_PATH] = { 0 }; // Get language
2016-12-22 13:03:12
1026
原创 C++ 获取父进程PID
我们可以使用ntddl.dll中有一个函数叫NtQueryInformationProcess,用它可以将指定类型的进程信息拷贝到某个缓冲。其原型如下:NTSYSAPINTSTATUSNTAPINtQueryInformationProcess (IN HANDLE ProcessHandle, // 进程句柄IN PROCESSINFOCLASS InformationClass, //
2016-12-22 12:56:16
2164
2
原创 C++ 隐藏系统托盘图标(支持XP-Win10)
#include "stdafx.h"#include #include #include BOOL IsWow64(){ BOOL bIsWow64 = FALSE; //IsWow64Process is not available on all supported versions of Windows. //Use GetModuleHandle to get a han
2016-06-07 07:26:03
1920
原创 C# 微软 SAPI.SpVoice 简单使用
网上找了好多资料也没找到多少 支持返回当前朗读的位置 用到了C#的回调函数 然后为了方便使用 我多此一举的封装了下 没什么技术含量 大牛直接飞过using System;using System.Collections.Generic;using System.Text;using DotNetSpeech;using System.Threading;using
2013-01-30 06:25:24
11776
原创 C# 窗口打开和关闭淡入淡出效果
#region 窗体关闭效果#region 私有方法[DllImportAttribute("user32.dll")]private static extern bool AnimateWindow(IntPtr whnd, int dwtime, int dwflag);#endregion/*1. AW_SLIDE : 使用滑动类型, 默认为该类型. 当使用 AW_CENTE
2013-01-19 23:46:28
1698
原创 C# 验证识别类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Drawing;using System.Drawing.Imaging;using System.Runtime.InteropServices;namespace 验证码处理{ c
2012-11-02 02:05:03
3613
2
原创 C# API拖动无边框窗口
//函数的作用是为当前的应用程序释放鼠标的捕获 [DllImport("user32.dll")] private static extern bool ReleaseCapture(); //函数的作用是发送消息 [DllImport("user32.dll")] private static extern boo
2012-10-26 08:16:06
1512
原创 C# String和byte[]的转换
string类型转成byte[]: byte[] byteArray = System.Text.Encoding.Default.GetBytes ( str ); byte[]类型转成string: string str = System.Text.Encoding.Default.GetString ( byteArray ); 其它编码方式的,如
2012-10-13 17:05:00
720
原创 C#字符串操作 取文本左边 取文本右边 取文本中间 取文本中间到List集合 指定文本倒序
/// /// 取文本左边内容 /// /// 文本 /// 标识符 /// 左边内容 public static string GetLeft(string str, string s) { string temp = str.Substring(0, st
2012-08-04 15:41:13
11891
javascript脚本调试工具
2012-07-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人