- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 DispatchMessage - synchronous or asynchronous
DispatchMessage is synchronous function. 下面是两个例子,用于说明为什么是同步的:给人异步的错觉,是因为唤起了一个新的消息循环while (GetMessage (&msg, NULL, 0, 0)) { if (! TranslateAccelerator (msg.hwnd, hAccelTable, &msg))
2016-08-26 16:44:25 626
原创 window services程序如何调试
详细说明见MSDN: https://msdn.microsoft.com/en-us/library/7a50syb3(v=vs.110).aspxBuild your service in the Debug configuration.Install your service. For more information, see How to: Install and Uninstall
2016-08-23 20:27:27 235
原创 线程池函数1 - 异步调用函数
1.创建work object, 所有task共用PTP_WORK WINAPI CreateThreadpoolWork( _In_ PTP_WORK_CALLBACK pfnwk, //回调函数 _Inout_opt_ PVOID pv, //传给回调函数的参数 _In_opt_ PTP_CALLBACK_EN
2016-08-20 11:20:17 768
原创 LINQ
LINQ不仅仅用于查询You might think that LINQ is just for queries because it stands for Language Integrated Query . But please don’t think of it only in that context. We prefer to think of LINQ as a data iterat
2016-08-14 12:00:53 181
原创 fatal error C1189: #error: Please use the /MD switch for _AFXDLL builds
fatal error C1189: #error: Please use the /MD switch for _AFXDLL buildsDLL从“Use MFC in a Shared DLL”改为“Use MFC in a Static Library”遇到了该问题。检查Runtime Library设置: Multi-threaded Debug (/MTd) Multi-threa
2016-08-04 10:34:58 2254 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人