会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一叶扁舟
2019.08.23 慢慢积累,总会变强大的 2024.07.09 温故而知新 可以为师矣
博客园
首页
新随笔
联系
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
39
下一页
2021年2月19日
LeetCode刷题
摘要: #include <iostream> #include <vector> #include <string> #include <unordered_set> #define max(a, b) ((a) > (b) ? (a) : (b)) struct ListNode{ int val; L
阅读全文
posted @ 2021-02-19 17:19 strive-sun
阅读(97)
评论(0)
推荐(0)
2021年2月17日
win32 - 使用GDI+从资源中获取图像并加载
摘要: 很多时候我们习惯使用GDI+中Image类来加载本地文件,但是有时候我们需要资源中从加载png格式的图片时,却无法使用该类。 我们可以使用FindResource,LoadResource和LockResource以获取指向图像字节的指针。然后从中创建一个IStream。IStream可用于初始化G
阅读全文
posted @ 2021-02-17 20:13 strive-sun
阅读(1628)
评论(0)
推荐(0)
2021年2月8日
Hexo - 搭建个人博客的bug集合
摘要: 按照很多视频教程进行操作,发现到hexo d这一步后,无法部署到github远端。 目前的解决方法: npm un hexo-deployer-git npm i hexojs/hexo-deployer-git 最后的博客地址:https://strsun.github.io/ 博客内容会慢慢更新
阅读全文
posted @ 2021-02-08 17:53 strive-sun
阅读(148)
评论(0)
推荐(0)
2021年2月7日
网络上收集的C++常见面试题
摘要: 1. 进程与线程的关系,图解 进程简单理解就是我们平常使用的程序,进程拥有自己独立的内存空间地址,拥有一个以上的线程。 线程可以理解为轻量级的进程,是程序执行的最小单元。在某个进程启动后,会默认产生一个主线程,主线程可以创建多个子线程,因此线程是存在进程内的,位于一个进程内的线程可以共享部分资源,故
阅读全文
posted @ 2021-02-07 21:03 strive-sun
阅读(282)
评论(0)
推荐(0)
2021年2月2日
Direct2D CreateBitmap的使用
摘要: 当需要设置位图的混合模式时,应该使用ID2D1DeviceContext而不是ID2D1RenderTarget。 代码如下: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <comdef.h> #include <d2d1.h>
阅读全文
posted @ 2021-02-02 18:02 strive-sun
阅读(672)
评论(0)
推荐(0)
Direct2D 旋转篇
摘要: 微软文档:Transforms 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 ID2D1SolidColorBrush* m_pOriginalShapeBrush, * m_pFillBrush,* m_pTransformedShapeBrush;
阅读全文
posted @ 2021-02-02 17:11 strive-sun
阅读(519)
评论(0)
推荐(0)
2021年1月29日
Direct2D 几何篇
摘要: 微软文档:Geometries overview 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 // Test_Direct2D_Brush.cpp : Defines the entry point for the application. // #
阅读全文
posted @ 2021-01-29 17:03 strive-sun
阅读(263)
评论(0)
推荐(0)
2021年1月28日
win32 - 使用Safer API创建受限的令牌
摘要: #include <Windows.h> #include <WinSafer.h> #include <stdio.h> #include <sddl.h> bool _IsNewProcessLaunched() { // Create the restricted token. SAFER_L
阅读全文
posted @ 2021-01-28 16:48 strive-sun
阅读(227)
评论(0)
推荐(0)
2021年1月27日
C++ getchar()
摘要: 用作复习,下面是第一个getchar()是用来接受字符,第二个是用来接受回车符 char a; while (1) { a = getchar(); getchar(); // scanf_s("%[^\n]"); std::cout << "Hello" ; std::cout << a ; }
阅读全文
posted @ 2021-01-27 17:51 strive-sun
阅读(968)
评论(0)
推荐(0)
2021年1月26日
win32 - 将控制台输出重定向到txt文本上
摘要: 这里需要两个app. parent.cpp #include <Windows.h> #include <stdio.h> int main() { SECURITY_ATTRIBUTES se = {}; se.nLength = sizeof(SECURITY_ATTRIBUTES); se.b
阅读全文
posted @ 2021-01-26 16:56 strive-sun
阅读(594)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
39
下一页
公告