ListView控件 实现简单进程管理 用到的相关api函数 //获取控件句柄 HWND GetDlgItem( HWND hDl 进程的遍历、获取与销毁 创建快照遍历 //获得进程所使用的堆,模块和线程的信息快照 HANDLE WINAPI CreateToolhelp32Snapshot 进程的创建 进程的启动过程 打开目标exe的映象文件 创建进程内核对象 映射NTDLL到内存 进程和线程 什么是进程? 进程和普通计算机程序的区别 进程 是运行中的程序 进程 活在内存中 有血 2018.4.3
2025.5.12
win32
181
1 分钟窗口与事件 窗口 什么是窗口? Windows中称为视窗,是一个程序的操作显示界面 窗口执行 2018.3.29
2025.5.12
win32
292
1 分钟API与宽字符 API(Application Programming Interface,应用程序编程接口) 2018.3.28
2025.5.12
win32 /逆向
412
1 分钟win32中的宽字符 宽字符 数据类型 容器、模板 ASCII 一个字符 一个字节 GB码(扩展了的ASC 2018.3.27
2025.5.12
win32
361
1 分钟兼容问题 由于ASCII存在字符含量过少的缺陷,所以不但我国自己搞出了国际码。其他国家 2018.3.27
2025.5.12
win32
361
1 分钟GB2312原文到GB2312机内码 ANSCII 汉字编码国家标准 区位码 01-09区 为特殊字符区 2018.3.1
2025.5.12
CPP
76
1 分钟模板 下面是一个针对int的冒泡排序 // _20180301.cpp : Defines the entry point for the console application. // #include "stdafx.h" void Sort(int* arr,int nLength) { int i,k; for (i = 0;ix 2018.2.23
2025.5.12
CPP
765
2 分钟深浅拷贝 相同类型间可以直接拷贝 // _20180212.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include class A { private: int* a; public: A() { a = 2018.2.20
2025.5.12
ruby
204
1 分钟Agenda Loop Expression File Read/Write Debug Process & Thread Loop while a = 10 while a > 0 puts a a -= 1 end until a = 100 until a == 0 puts a a -= 1 end loop a = 10 2018.2.20
2025.5.12
ruby
952
2 分钟Agenda class_eval & instance_eval method_missing Module as a namespace Gems require vs load $LOAD_PATH class_eval 首先class_eval是只有类才能调用的,Class 2018.2.18
2025.5.12
ruby
647
2 分钟Ruby的内部类结构 Array.class # => Class Class.class # => Class superclass 查看父类 Array.superclass # =>Object Object.superclass # =>BasicObject BasicObject.superclass # => nil ancestors 查看当前类的继承 2018.2.17
2025.5.12
ruby
228
1 分钟继承示例 # inheritance class User attr_accessor :name, :age def initialize name, age @name, @age = name, age end def panels # ||= 操作符, 如果变量不存在 那么就赋值 @panels 2018.2.17
2025.5.12
ruby
731
2 分钟Everything is Object 一切皆对象 1 2 3 4 5 6 7 a = "hello" a.class # => String b = 3.14 b.class # => Float c = %w[pear cat horse] c.class # => Array Instance Method & Instance 2018.2.17
2025.5.12
ruby
1143
3 分钟代码规范 使用UTF-8编码 使用空格缩进,不使用tab, 1 tab = 2 spaces 不需要使用分号(;) 2018.2.17
2025.5.12
ruby
192
1 分钟变量赋值 # 变量交换 a = 1 b = 2 b,a = a,b puts a puts b puts "-" * 30 x = [1, 2, 3] a, b = x #默认会把数组 2018.2.17
2025.5.12
ruby
751
2 分钟Block 代码块 Block是一个参数 匿名参数 Callback 使用do/en或者{}来定义 {puts "hello"} Demo: # block usage def hello puts 2018.2.16
2025.5.12
ruby
199
1 分钟if/else/elsif 1 2 3 4 5 6 7 8 9 a = "hello" b = false if a p a elsif b p b else p "ok" end unless unless相当于if的反