会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
r00t_exp
博客园
首页
新随笔
联系
订阅
管理
2020年2月17日
C++ 输出格林威治时间(Http的Date)
摘要: int GetGmtTime(char* szGmtTime) { if (szGmtTime == NULL) { return -1; } time_t rawTime = time(NULL) + pTmg->Get_WhiteUser_Vtime(); char szTemp[30] = {
阅读全文
posted @ 2020-02-17 16:11 r00t_exp
阅读(681)
评论(0)
推荐(0)
2019年12月30日
C++ sqlite数据库中文路径编码函数
摘要: char* UnicodeToUtf8(const wchar_t* unicode) { int len; len = WideCharToMultiByte(CP_UTF8, 0, unicode, -1, NULL, 0, NULL, NULL); char *szUtf8 = (char*)
阅读全文
posted @ 2019-12-30 16:38 r00t_exp
阅读(284)
评论(0)
推荐(0)
2019年12月26日
C++使用libcurl编译报错的解决办法
摘要: 需要添加的依赖项: libcurl_a.libws2_32.libwinmm.libwldap32.libssleay32.liblibeay32.libmsvcrtd.libzlib.libNormaliz.lib 预编译头: CURL_STATICLIBBUILDING_LIBCURLHTTP_
阅读全文
posted @ 2019-12-26 18:18 r00t_exp
阅读(345)
评论(0)
推荐(0)
2019年12月8日
C++生成13位时间戳
摘要: #include <string> #include <stdio.h> string GetUnixTime() { string nowTimeUnix; string cs_uninxtime; string cs_milliseconds; SYSTEMTIME sysTime; GetLo
阅读全文
posted @ 2019-12-08 20:15 r00t_exp
阅读(1333)
评论(0)
推荐(0)
2019年12月6日
C++ 生成dump文件
摘要: int GenerateMiniDump(PEXCEPTION_POINTERS pExceptionPointers) { // 定义函数指针 typedef BOOL(WINAPI * MiniDumpWriteDumpT)( HANDLE, DWORD, HANDLE, MINIDUMP_TY
阅读全文
posted @ 2019-12-06 14:21 r00t_exp
阅读(744)
评论(0)
推荐(0)
2019年11月25日
C++ UTF8转为UNICODE
摘要: UTF8转为UNICODE char* UTF82Char(const char* szU8) { int wcsLen = MultiByteToWideChar(CP_UTF8, NULL, szU8, (int)strlen(szU8), NULL, 0); wchar_t* wszStrin
阅读全文
posted @ 2019-11-25 14:38 r00t_exp
阅读(1417)
评论(0)
推荐(1)
2019年8月22日
Delphi简单生成图片验证码
摘要: unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V
阅读全文
posted @ 2019-08-22 17:43 r00t_exp
阅读(420)
评论(0)
推荐(0)
2019年4月29日
CentOS 7.0开放指定端口
摘要: >>> CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止fire
阅读全文
posted @ 2019-04-29 11:05 r00t_exp
阅读(391)
评论(0)
推荐(0)
2019年4月8日
go语言实现https的简单get和post请求
摘要: package main import ( "crypto/tls" "fmt" "io" "io/ioutil" "net/http" ) func main(){ GetData() PostMethod() } //这是get请求 func GetData(){ tr := &http.Transport{ ...
阅读全文
posted @ 2019-04-08 13:32 r00t_exp
阅读(747)
评论(0)
推荐(0)
2019年4月1日
Delphi 10.3版本获取windows系统版本和CPU信息
摘要: 需要引用 System.Win.Registry单元
阅读全文
posted @ 2019-04-01 13:22 r00t_exp
阅读(714)
评论(0)
推荐(0)
下一页
公告