摘要:
int GetGmtTime(char* szGmtTime) { if (szGmtTime == NULL) { return -1; } time_t rawTime = time(NULL) + pTmg->Get_WhiteUser_Vtime(); char szTemp[30] = { 阅读全文
摘要:
char* UnicodeToUtf8(const wchar_t* unicode) { int len; len = WideCharToMultiByte(CP_UTF8, 0, unicode, -1, NULL, 0, NULL, NULL); char *szUtf8 = (char*) 阅读全文
摘要:
需要添加的依赖项: libcurl_a.libws2_32.libwinmm.libwldap32.libssleay32.liblibeay32.libmsvcrtd.libzlib.libNormaliz.lib 预编译头: CURL_STATICLIBBUILDING_LIBCURLHTTP_ 阅读全文
摘要:
#include <string> #include <stdio.h> string GetUnixTime() { string nowTimeUnix; string cs_uninxtime; string cs_milliseconds; SYSTEMTIME sysTime; GetLo 阅读全文
摘要:
int GenerateMiniDump(PEXCEPTION_POINTERS pExceptionPointers) { // 定义函数指针 typedef BOOL(WINAPI * MiniDumpWriteDumpT)( HANDLE, DWORD, HANDLE, MINIDUMP_TY 阅读全文
摘要:
UTF8转为UNICODE char* UTF82Char(const char* szU8) { int wcsLen = MultiByteToWideChar(CP_UTF8, NULL, szU8, (int)strlen(szU8), NULL, 0); wchar_t* wszStrin 阅读全文
摘要:
unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V 阅读全文
摘要:
>>> CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止fire 阅读全文
摘要:
package main import ( "crypto/tls" "fmt" "io" "io/ioutil" "net/http" ) func main(){ GetData() PostMethod() } //这是get请求 func GetData(){ tr := &http.Transport{ ... 阅读全文
摘要:
需要引用 System.Win.Registry单元 阅读全文