随笔分类 - C、C++
摘要:一、手动添加ON_WM_DEVICECHANGE()消息 二、添加头文件#include <Dbt.h> 三、定义设备的GUID static const GUID GUID_DEVINTERFACE_LIST[] ={ // GUID_DEVINTERFACE_USB_DEVICE USB设备的G
阅读全文
摘要:A handle to a local Bluetooth radio, obtained by calling the BluetoothFindFirstRadio or similar functions, or the SetupDiEnumerateDeviceInterfances fu
阅读全文
摘要:Enumeration handle to close, obtained with a previous call to the BluetoothFindFirstRadio function. 要关闭的枚举句柄,使用之前对BluetoothFindFirstRadio函数的调用获得。 返回值:
阅读全文
摘要:Handle returned by a previous call to the BluetoothFindFirstRadio function. 由先前对BluetoothFindFirstRadio函数的调用返回的句柄。 On input, a pointer to where the ne
阅读全文
摘要:Pointer to a BLUETOOTH_FIND_RADIO_PARAMS structure. The dwSize member of the BLUETOOTH_FIND_RADIO_PARAMS structure pointed to by pbtfrp must match the
阅读全文
摘要:Size of the BLUETOOTH_DEVICE_INFO structure, in bytes. BLUETOOTH_DEVICE_INFO结构的大小(单位为字节)。 Address of the device. 设备地址 Class of the device. 设备的类。 Speci
阅读全文
摘要:A handle of the local Bluetooth radio. 本地蓝牙无线电的句柄。 A pointer to a BLUETOOTH_DEVICE_INFO structure. Must be a previously found radio address. 指向BLUETOO
阅读全文
摘要:union,中文名“联合体、共用体”,在某种程度上类似结构体struct的一种数据结构,共用体(union)和结构体(struct)同样可以包含很多种数据类型和变量。 不过区别也挺明显: 结构体(struct)中所有变量是“共存”的——优点是“有容乃大”,全面;缺点是struct内存空间的分配是粗放
阅读全文
摘要:void CMyDlg::OnSize(UINT nType, int cx, int cy){ CDialogEx::OnSize(nType, cx, cy); CRect rt; GetClientRect(&rt); if (m_Grid.GetSafeHwnd() != NULL) { m
阅读全文
摘要:https://msdn.microsoft.com/zh-cn/library/k3e0h1hb.aspx
阅读全文
摘要:static_cast” : 无法从“void (__thiscall CMainFrame::* )(NMTOOLBARA *,LRESULT *)”转换为“void (__thiscall CCmdTarget::* )(NMHDR *,LRESULT https://blog.csdn.net
阅读全文
摘要:当你的函数的参数个数不确定时,就可以使用上述宏进行动态处理,这无疑为你的程序增加了灵活性。 va_list的使用方法: a) 首先在函数中定义一个具有va_list型的变量,这个变量是指向参数的指针。 b) 然后用va_start宏初始化变量刚定义的va_list变量,使其指向第一个可变参数的地址。
阅读全文
摘要:#if _MSC_VER > 1000 #pragma once #endif 解释: 这是微软的预编译控制。 在_MSC_VER较小时,它对一些东西的支持与新版不同 _MSC_VER分解如下: MS:Microsoft(微软)的简写 C:MSC就是Microsoft出的C编译器。 VER:Vers
阅读全文
摘要:用当前的笔绘制一个由两个或多个点(顶点)连接的多边形。 lpPoints 指向一个指定多边形顶点的点。数组中的每一点都是一个点结构或一个CPoint对象。 nCount 指定数组中顶点的数量。 返回值 如果函数成功,则非零;否则0。
阅读全文
摘要:Meter类 Meter.h Meter.cpp MemDCEx.h 完整工程下载:https://download.csdn.net/download/qq_23565865/10715458
阅读全文
摘要:CString strTemp; strTemp.Format ("%.*lf",3,600.0); 这句话的含义?求指教 优质解答这就是一个格式化输出,分号之前的CString strTemp;是第一句代码, 意思是定义一个变量strTemp,后半句是把一个数字(本例中是600)格式化成一个Cst
阅读全文
摘要:ClientSocket.h ClientSocket.cpp ClientProDlg.h中添加 #include "ClientSocket.h" void ReceiveData(CClientSocket* socket); void ClientDisConnect(CClientSock
阅读全文
摘要:https://blog.csdn.net/czyt1988/article/details/8740500
阅读全文
摘要:https://www.cnblogs.com/wolfmvp/category/1036120.html
阅读全文
摘要:SC_HANDLE WINAPI OpenService( _In_ SC_HANDLE hSCManager, _In_ LPCTSTR lpServiceName, _In_ DWORD dwDesiredAccess ); 函数作用:打开一个已经存在的服务 参数: 1. hSCManager:
阅读全文

浙公网安备 33010602011771号