![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Windows C++工具类
一缕阳光宣泄、整个世界
这个作者很懒,什么都没留下…
展开
-
C++ AES加密实现
网上找到的,分享一下: Base64.h: #ifndef BASE_64_H #define BASE_64_H //#include "stdafx.h" #include <string> std::string base64_encode(unsigned char const* , unsigned int len); std::string base64_decode(std::string const& s); #endif Base64.cpp: //#inclu原创 2020-08-26 17:12:51 · 1110 阅读 · 0 评论 -
域名解析IP
域名解析IP函数: windows版本: #include <winsock2.h> struct hostent *gethostbyname(const char *name); linux版本: #include <netdb.h> struct hostent *gethostbyname(const char *hostname); 返回值:非空指针——成功,...原创 2020-04-21 10:58:27 · 558 阅读 · 0 评论 -
C++ 读取/写入配置文件
配置文件格式: 读取/写入示例: #define DB_SECITON_TEXT _T("DataBase") static LPCTSTR g_pDBItemText[] = { _T("DataBaseType"), _T("DataBaseHost"), _T("DataBaseInstance"), _T("UserName"), _T("UserPassword"), ...原创 2019-11-27 20:56:36 · 557 阅读 · 0 评论