Fork me on GitHub
摘要: windows程序在现实方式上属于图形方式,和文字方式的显示,有显著的不同。 什么是设备句柄,如何获取 使用统一的数据结构表示某一设备,这个结构就是设备句柄。 源码 1 #include<Windows.h> 2 3 LRESULT CALLBACK WindProc(HWND hwnd, UINT 阅读全文
posted @ 2018-07-12 21:44 克拉默与矩阵 阅读(916) 评论(0) 推荐(0) 编辑
摘要: 源码 1 #include<Windows.h> 2 3 LRESULT CALLBACK WindProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); 4 5 int WinMain(HINSTANCE hInst, HINSTA 阅读全文
posted @ 2018-07-12 17:02 克拉默与矩阵 阅读(301) 评论(0) 推荐(0) 编辑
摘要: VS 2017下源码 1 #include<stdio.h> 2 3 int main() 4 { 5 char ASC_a = 'a'; 6 char *ASC_str = "hello"; 7 wchar_t W_a = 'a'; 8 wchar_t *W_str = "hello"; 9 pr 阅读全文
posted @ 2018-07-12 11:25 克拉默与矩阵 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 源码 1 #include<Windows.h> 2 #include<stdio.h> 3 4 int MessageBoxPrint(char *szFormat, ...); 5 6 int WinMain(HINSTANCE hInst, HINSTANCE tmp, LPSTR strCm 阅读全文
posted @ 2018-07-12 11:00 克拉默与矩阵 阅读(310) 评论(0) 推荐(0) 编辑
摘要: C语言中,对 sizeof() 的处理都是在编译阶段进行。 下面代码,注意可变参数是怎么使用的 #include<Windows.h> #include<stdio.h> int MessageBoxPrint(char *szFormat, ...); int fun(char ch[]); in 阅读全文
posted @ 2018-07-12 10:37 克拉默与矩阵 阅读(299) 评论(0) 推荐(0) 编辑