摘要:
转自:http://www.cnblogs.com/qytan36/archive/2010/09/27/1836569.html在C中,默认的基础数据类型均为signed,现在我们以char为例,说明(signed) char与unsigned char之间的区别首先在内存中,char与unsigned char没有什么不同,都是一个字节,唯一的区别是,char的最高位为符号位,因此char能表示-128~127, unsigned char没有符号位,因此能表示0~255,这个好理解,8个bit,最多256种情况,因此无论如何都能表示256个数字。在实际使用过程种有什么区别呢?主要是符号位 阅读全文
posted @ 2013-04-10 17:06
fff8965
阅读(224)
评论(0)
推荐(0)
摘要:
gdi截屏// TTTest.cpp : 定义应用程序的入口点。//#include "stdafx.h"#include "TTTest.h"#include <stdio.h>LPVOID screenCaptureData=NULL;HBITMAP hBitmap;HDC hDDC;HDC hCDC;int nWidth;int nHeight;void initGDI(){ // Get screen size nWidth = GetSystemMetrics(SM_CXSCREEN); nHeight = GetSystemMet 阅读全文
posted @ 2013-04-10 16:08
fff8965
阅读(5768)
评论(3)
推荐(0)
摘要:
HCURSOR GetCurrentCursorHandle(){ POINT pt; HWND hWnd; DWORD dwThreadID, dwCurrentThreadID; HCURSOR hCursor = NULL; // Find out which window owns the cursor GetCursorPos(&pt); hWnd = WindowFromPoint(pt); // Get the thread ID for the cursor owner. dwThreadID = GetWindowThre... 阅读全文
posted @ 2013-04-10 13:15
fff8965
阅读(1060)
评论(0)
推荐(0)
摘要:
AttachThreadInput 阅读全文
posted @ 2013-04-10 13:09
fff8965
阅读(163)
评论(0)
推荐(0)

浙公网安备 33010602011771号