摘要:
按照很多视频教程进行操作,发现到hexo d这一步后,无法部署到github远端。 目前的解决方法: npm un hexo-deployer-git npm i hexojs/hexo-deployer-git 最后的博客地址:https://strsun.github.io/ 博客内容会慢慢更新 阅读全文
摘要:
1. 进程与线程的关系,图解 进程简单理解就是我们平常使用的程序,进程拥有自己独立的内存空间地址,拥有一个以上的线程。 线程可以理解为轻量级的进程,是程序执行的最小单元。在某个进程启动后,会默认产生一个主线程,主线程可以创建多个子线程,因此线程是存在进程内的,位于一个进程内的线程可以共享部分资源,故 阅读全文
摘要:
当需要设置位图的混合模式时,应该使用ID2D1DeviceContext而不是ID2D1RenderTarget。 代码如下: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <comdef.h> #include <d2d1.h> 阅读全文
摘要:
微软文档:Transforms 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 ID2D1SolidColorBrush* m_pOriginalShapeBrush, * m_pFillBrush,* m_pTransformedShapeBrush; 阅读全文
摘要:
微软文档:Geometries overview 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 // Test_Direct2D_Brush.cpp : Defines the entry point for the application. // # 阅读全文
摘要:
#include <Windows.h> #include <WinSafer.h> #include <stdio.h> #include <sddl.h> bool _IsNewProcessLaunched() { // Create the restricted token. SAFER_L 阅读全文
摘要:
用作复习,下面是第一个getchar()是用来接受字符,第二个是用来接受回车符 char a; while (1) { a = getchar(); getchar(); // scanf_s("%[^\n]"); std::cout << "Hello" ; std::cout << a ; } 阅读全文
摘要:
这里需要两个app. parent.cpp #include <Windows.h> #include <stdio.h> int main() { SECURITY_ATTRIBUTES se = {}; se.nLength = sizeof(SECURITY_ATTRIBUTES); se.b 阅读全文
摘要:
微软文档:Brushes overview 本篇通过官方文档学习,整理出来的demo,初始样本请先创建一个普通的desktop app。 // Test_Direct2D_Brush.cpp : Defines the entry point for the application. // #inc 阅读全文
摘要:
偶然碰到这类技术博客,甚感欣慰,但奈何技术水平达不到,很多都难以理解,故记录在此,用作日后学习。 国内有类似的中文翻译,比如:突破Windows极限:物理内存 但是外文链接已经失效,看不到原汁原味的英文,所以下面我整理出最新的链接。 外网资源: 突破Windows的极限:物理内存 突破Windows 阅读全文