2019年1月23日

通过进程名称,获取其路径

摘要: 使用windows api 此处要轮询每个进程,稍微费时,不适合几秒钟就做一次的情况 阅读全文

posted @ 2019-01-23 16:39 liujx2019 阅读(301) 评论(0) 推荐(0)

C++ Windows - How to get process path from its PID

摘要: 出处 https://stackoverflow.com/questions/1933113/c-windows-how-to-get-process-path-from-its-pid 注意质疑(我也没试过): 1 most of modules turn to a failure in gett 阅读全文

posted @ 2019-01-23 16:38 liujx2019 阅读(818) 评论(0) 推荐(0)

QT 无法抓住异常

摘要: 出处:https://stackoverflow.com/questions/40980171/qt5core-dll-crashing I've found that enabling /EHa (Structured Exception Handling) on the compiler sol 阅读全文

posted @ 2019-01-23 16:37 liujx2019 阅读(1355) 评论(0) 推荐(0)

设置共享内存大小 【windows】

摘要: hMapFile = CreateFileMapping( INVALID_HANDLE_VALUE, // use paging file NULL, // default security PAGE_READWRITE, //... 阅读全文

posted @ 2019-01-23 16:36 liujx2019 阅读(1432) 评论(0) 推荐(1)

How to use QueryPerformanceCounter? (c++,不使用 .Net)

摘要: 出处:https://stackoverflow.com/questions/1739259/how-to-use-queryperformancecounter 参考:https://docs.microsoft.com/zh-cn/windows/desktop/WmiSdk/accessing 阅读全文

posted @ 2019-01-23 16:35 liujx2019 阅读(285) 评论(0) 推荐(0)

c++ 更新 performance counter 数据,错误码 87

摘要: ERROR_INVALID_PARAMETER 87 (0x57) The parameter is incorrect. 很可能是该送 ULONG 的送了 ULONGLONG,vise versa ERROR_INVALID_PARAMETER 87 (0x57) The parameter is 阅读全文

posted @ 2019-01-23 16:35 liujx2019 阅读(233) 评论(0) 推荐(0)

点击 QTableView,触发事件

摘要: Here is an example of how you can get a table cell's text when clicking on it. Suppose a QTableView defined in some MyClass class. You need to connect 阅读全文

posted @ 2019-01-23 16:33 liujx2019 阅读(4341) 评论(2) 推荐(1)

测网速

摘要: 出处:https://stackoverflow.com/questions/20190456/determine-available-upload-download-bandwidth There's no way to determine the absolute network capacit 阅读全文

posted @ 2019-01-23 16:32 liujx2019 阅读(211) 评论(0) 推荐(0)

fseek 在以字符串模式打开的文件中工作不正常 [MSDN]

摘要: For streams opened in text mode, fseek and _fseeki64 have limited use, because carriage return-linefeed translations can cause fseek and _fseeki64 to 阅读全文

posted @ 2019-01-23 16:28 liujx2019 阅读(166) 评论(0) 推荐(0)

Inno Setup: Ask for reboot after uninstall

摘要: https://stackoverflow.com/questions/36497580/inno-setup-ask-for-reboot-after-uninstall Use UninstallNeedRestart event function: It makes uninstaller a 阅读全文

posted @ 2019-01-23 15:06 liujx2019 阅读(271) 评论(0) 推荐(0)

导航